Function at 0x409f80
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x48ae54
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10558
call fcn.0045d8d0
mov eax, dword [0x4b37a0]
xor eax, esp
mov dword [esp + 0x10554], eax
push esi
push edi
mov eax, dword [0x4b37a0]
xor eax, esp
push eax
lea eax, [esp + 0x10568]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x30], esi
xor eax, eax
mov dword [esp + 0x120], 7
push 0xffffffffffffffff
mov word [esp + 0x110], ax
lea ecx, [esp + 0x110]
lea eax, [esi + 0x30]
mov dword [esp + 0x120], 0
push 0
push eax
call fcn.00406490
mov dword [esp + 0x10570], 0
lea edi, [esi + 0x18]
mov ecx, dword [esi + 0x5c]
lea edx, [esp + 0x10c]
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0
movq qword [esp + 0xfc], xmm0
mov dword [esp + 0x24], edi
lea eax, [ecx + 0xc]
push eax
push ecx
push edi
lea ecx, [esp + 0x108]
call fcn.0040da20
add esp, 0xc
xorps xmm0, xmm0
mov byte [esp + 0x10570], 1
lea ecx, [esp + 0x104]
movq qword [esp + 0x104], xmm0
call fcn.0040dab0
lea eax, [esp + 0x104]
mov byte [esp + 0x10570], 2
xorps xmm0, xmm0
lea edx, [esp + 0xfc]
push eax
lea ecx, [esp + 0xf8]
movq qword [esp + 0xf8], xmm0
call fcn.0040db40
add esp, 4
mov byte [esp + 0x10570], 3
cmp dword [esi + 0x4c], 0
je 0x40a0e3
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], ax
call fcn.00406490
sub esp, 8
lea eax, [esp + 0x114]
mov ecx, esp
push eax
call fcn.00402710
mov ecx, dword [esi + 0x5c]
call fcn.004078d0
jmp 0x40ad6c
cmp dword [esi + 0x54], 0
je 0x40a12c
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], ax
call fcn.00406490
sub esp, 8
lea eax, [esp + 0x114]
mov ecx, esp
push eax
call fcn.00402710
push dword [esi + 0x50]
mov ecx, dword [esi + 0x5c]
call fcn.0040c820
jmp 0x40ad6c
push 0xc8
lea eax, [esp + 0x140]
push 0
push eax
call fcn.0045a730
add esp, 8
lea ecx, [esp + 0x140]
call fcn.00416490
mov byte [esp + 0x10570], 4
cmp dword [esi + 0x14], 8
jb 0x40a161
mov eax, dword [esi]
jmp 0x40a163
mov eax, esi
push ecx
push 0x61
push eax
lea ecx, [esp + 0x160]
mov dword [esp + 0x20c], 0x41
call fcn.00403c60
test eax, eax
lea ecx, [esp + 0x13c]
mov eax, dword [esp + 0x13c]
mov eax, dword [eax + 4]
jne 0x40a1a6
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40a1b5
or eax, 4
jmp 0x40a1b5
add ecx, eax
mov edx, 4
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
and eax, 0x17
test dword [ecx + 0x10], eax
mov dword [ecx + 0xc], eax
je 0x40a1c7
push 0
call fcn.00406020
cmp dword [esp + 0x1a4], 0
jne 0x40a209
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push 0x4a5668
call fcn.00417103
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
call fcn.00412100
push 0
push 0x4a5678
push 0x4a5668
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40ad3d
push 0
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], ax
call fcn.00406490
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
call fcn.00411f10
mov ecx, dword [esp + 0xfc]
lea eax, [esp + 0x124]
push eax
call fcn.00415010
push 0
sub esp, 0x18
mov byte [esp + 0x1058c], 5
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], ax
call fcn.00406490
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
call fcn.00411a80
mov eax, dword [esi + 0x5c]
mov al, byte [eax + 0x70]
test al, al
je 0x40a2e2
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x108], esp
push edi
call fcn.004030e0
sub esp, 0x18
mov byte [esp + 0x105a0], 6
lea eax, [esi + 0x30]
mov dword [esp + 0x4c], esp
mov ecx, esp
push eax
call fcn.004030e0
sub esp, 0x18
mov byte [esp + 0x105b8], 7
mov ecx, esp
push esi
call fcn.004030e0
push dword [esi + 0x48]
mov byte [esp + 0x105bc], 5
mov ecx, dword [esi + 0x5c]
call fcn.00408c80
jmp 0x40ad04
cmp dword [esi + 0x58], 0
je 0x40a33c
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x108], esp
push edi
call fcn.004030e0
sub esp, 0x18
mov byte [esp + 0x105a0], 8
lea eax, [esi + 0x30]
mov dword [esp + 0x4c], esp
mov ecx, esp
push eax
call fcn.004030e0
sub esp, 0x18
mov byte [esp + 0x105b8], 9
mov ecx, esp
push esi
call fcn.004030e0
mov byte [esp + 0x105b8], 5
mov ecx, dword [esi + 0x5c]
call fcn.00407fb0
jmp 0x40ad04
cmp dword [esi + 0x50], 0
mov ecx, 0x1000
mov eax, 0x10000
mov edx, 9
cmovne eax, ecx
push 0
mov dword [esp + 0x18], eax
mov al, byte [0x4ba894]
push 0
test al, al
movzx ecx, al
push 0
cmove ecx, edx
mov byte [esp + 0x1c], cl
push 0
push dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x10c]
call fcn.004024d0
test al, al
je 0x40a9da
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov dword [esp + 0x88], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0x80]
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
call fcn.00406490
cmp dword [esp + 0x84], 0
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
je 0x40a3f4
cmp dword [esp + 0x88], 8
lea eax, [esp + 0x74]
push 5
cmovae eax, dword [esp + 0x78]
movzx eax, word [eax]
push eax
push dword [ecx + 0x5cc]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esp + 0x88], 8
jb 0x40a40a
push dword [esp + 0x74]
call fcn.00455fa6
add esp, 4
mov ecx, dword [esp + 0xf4]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x34], xmm0
mov dword [esp + 0x35], 0x400
mov byte [esp + 0x39], 0
mov eax, dword [ecx + 8]
mov al, byte [eax]
and al, 0xf
or al, 0xc0
mov byte [esp + 0x34], al
lea eax, [esp + 0xf0]
push eax
push 4
lea eax, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [ecx]
call fcn.004153d0
test al, al
jne 0x40a473
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push 0x4a5748
call fcn.00417103
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
call fcn.00412100
jmp 0x40a9da
push 0x84
lea eax, [esp + 0x208]
push 0
push eax
call fcn.0045a730
add esp, 0xc
lea ecx, [esp + 0x204]
call fcn.00417127
mov byte [esp + 0x10570], 0xa
lea eax, [esp + 0x204]
push dword [esp + 0xf0]
push str.FLASH_ID__X
push eax
call fcn.00417645
sub esp, 0x78
lea eax, [esp + 0x288]
mov ecx, esp
push eax
call fcn.004170de
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
call fcn.00412100
push 0xa
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], ax
call fcn.00406490
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
call fcn.00411a40
lea ecx, [esp + 0x13c]
call fcn.00416110
mov dword [esp + 0x10], eax
cmp eax, 0x10000
jbe 0x40a7e5
xor edx, edx
movsd xmm1, qword [0x4a6a68]
div dword [esp + 0x14]
push 0xa
sub esp, 0x18
mov dword [esp + 0x48], eax
mov ecx, esp
movd xmm0, eax
cvtdq2pd xmm0, xmm0
push edi
divsd xmm1, xmm0
movsd qword [esp + 0x54], xmm1
call fcn.004030e0
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
call fcn.00411a40
mov eax, dword [esi + 0x48]
lea ecx, [esp + 0x13c]
add eax, dword [esp + 0x14]
push 0
cdq
push edx
push eax
call fcn.00416220
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push 0x4a569c
call fcn.00417103
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
call fcn.00412100
cmp dword [esp + 0x2c], 1
mov dword [esp + 0x28], 1
jle 0x40a658
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x40a5b0
push 0
push eax
lea eax, [esp + 0x564]
push eax
lea ecx, [esp + 0x148]
call fcn.00402db0
sub esp, 8
lea eax, [esp + 0xfc]
mov ecx, esp
push eax
call fcn.00402710
push dword [esp + 0x1c]
mov ecx, dword [esi + 0x5c]
lea eax, [esp + 0x568]
push eax
push dword [esp + 0x30]
call fcn.0040aed0
test eax, eax
je 0x40a9c6
movd xmm0, dword [esp + 0x28]
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [esp + 0x34]
cvttsd2si eax, xmm0
add eax, 0xa
push eax
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], ax
call fcn.00406490
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
call fcn.00411a40
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
inc ecx
add dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x2c]
jl 0x40a5b0
xor eax, eax
mov dword [esp + 0xb8], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc0], 0
mov word [esp + 0xb0], ax
call fcn.00406490
cmp dword [esp + 0xb4], 0
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
je 0x40a6c4
cmp dword [esp + 0xb8], 8
lea eax, [esp + 0xa4]
push 0x5a
cmovae eax, dword [esp + 0xa8]
movzx eax, word [eax]
push eax
push dword [ecx + 0x5cc]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esp + 0xb8], 8
jb 0x40a6dd
push dword [esp + 0xa4]
call fcn.00455fa6
add esp, 4
mov eax, dword [esp + 0x10]
xor edx, edx
sub eax, dword [esi + 0x48]
div dword [esp + 0x14]
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
je 0x40a743
push 0
push eax
lea eax, [esp + 0x564]
push eax
lea ecx, [esp + 0x148]
call fcn.00402db0
sub esp, 8
lea eax, [esp + 0xfc]
mov ecx, esp
push eax
call fcn.00402710
push dword [esp + 0x18]
mov ecx, dword [esi + 0x5c]
lea eax, [esp + 0x568]
push eax
mov eax, dword [esp + 0x3c]
imul eax, dword [esp + 0x24]
push eax
call fcn.0040aed0
test eax, eax
je 0x40a9c6
mov eax, dword [esi + 0x48]
mov ecx, dword [esp + 0x200]
cdq
test cl, 1
je 0x40a765
push 0
push edx
push eax
lea ecx, [esp + 0x148]
call fcn.00402ef0
jmp 0x40a77a
test cl, 2
je 0x40a77a
push 0
push edx
push eax
lea ecx, [esp + 0x158]
call fcn.00416270
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x564]
push eax
lea ecx, [esp + 0x148]
call fcn.00402db0
sub esp, 8
lea eax, [esp + 0xfc]
mov ecx, esp
push eax
call fcn.00402710
push dword [esp + 0x1c]
mov ecx, dword [esi + 0x5c]
lea eax, [esp + 0x568]
push eax
push 0
call fcn.0040aed0
test eax, eax
je 0x40a9c6
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push str.ck_W_h
call fcn.00417103
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
call fcn.00412100
jmp 0x40a843
mov eax, dword [esi + 0x48]
lea ecx, [esp + 0x13c]
push 0
cdq
push edx
push eax
call fcn.00416220
push 0
push dword [esp + 0x14]
lea eax, [esp + 0x564]
push eax
lea ecx, [esp + 0x148]
call fcn.00402db0
sub esp, 8
lea eax, [esp + 0xfc]
mov ecx, esp
push eax
call fcn.00402710
push dword [esp + 0x18]
mov ecx, dword [esi + 0x5c]
lea eax, [esp + 0x568]
push eax
push 0
call fcn.0040aed0
test eax, eax
je 0x40a9c6
mov eax, dword [esi + 0x5c]
mov eax, dword [eax + 0x34]
cmp dword [eax + 0x5b8], 0
je 0x40a9be
push 0x104
lea eax, [esp + 0x358]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x354]
push 0x5c
push eax
call fcn.0045910f
xor ecx, ecx
push 0x4a5790
push 0x104
mov word [eax + 2], cx
lea eax, [esp + 0x364]
push eax
call fcn.004593a3
add esp, 0x14
lea eax, [esp + 0x28c]
push 0xc8
push 0
push eax
call fcn.0045a730
add esp, 8
lea ecx, [esp + 0x290]
call fcn.00416490
push 0x21
lea eax, [esp + 0x358]
mov byte [esp + 0x10574], 0xb
push eax
lea ecx, [esp + 0x294]
call fcn.00416050
test al, al
je 0x40a98f
lea ecx, [esp + 0x28c]
call fcn.00416110
mov dword [esp + 0x10], eax
lea esi, [eax - 0x100]
push esi
call fcn.004561eb
add esp, 4
lea ecx, [esp + 0x28c]
mov edi, eax
push 0
push 0
push 0x100
call fcn.00416220
push 0
push esi
push edi
lea ecx, [esp + 0x298]
call fcn.00402db0
lea ecx, [esp + 0x28c]
call fcn.004160d0
mov al, byte [0x4ba894]
push 0
push 0
movzx ecx, al
test al, al
push 0
mov eax, 9
cmove ecx, eax
push 0
mov byte [esp + 0x2c], cl
push dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x10c]
call fcn.004024d0
push dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xfc]
push edi
call fcn.00402630
test al, al
je 0x40a987
push ecx
mov ecx, dword [esp + 0xf8]
call fcn.00402690
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x304]
mov byte [esp + 0x10570], 0xa
call fcn.0040cf50
lea eax, [esp + 0x304]
mov dword [esp + method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
push eax
call fcn.00456219
add esp, 4
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x204]
mov byte [esp + 0x10570], 5
call fcn.004171c6
xor eax, eax
mov dword [esp + 0xd0], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0xc8]
mov dword [esp + 0xd8], 0
mov word [esp + 0xc8], ax
call fcn.00406490
cmp dword [esp + 0xcc], 0
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
je 0x40aa46
cmp dword [esp + 0xd0], 8
lea eax, [esp + 0xbc]
push 0x64
cmovae eax, dword [esp + 0xc0]
movzx eax, word [eax]
push eax
push dword [ecx + 0x5cc]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esp + 0xd0], 8
jb 0x40aa5f
push dword [esp + 0xbc]
call fcn.00455fa6
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x40ab53
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push str.penc
call fcn.00417103
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
call fcn.00412100
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push 0x4a56c0
call fcn.00417103
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
call fcn.00412100
xor eax, eax
mov dword [esp + 0x58], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
call fcn.00406490
cmp dword [esp + 0x54], 0
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
je 0x40aafc
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
push 1
cmovae eax, dword [esp + 0x48]
movzx eax, word [eax]
push eax
push dword [ecx + 0x5d0]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esp + 0x58], 8
jb 0x40ab0f
push dword [esp + 0x44]
call fcn.00455fa6
add esp, 4
mov ecx, dword [esp + 0xf4]
xorps xmm0, xmm0
push 0
movdqa xmmword [esp + 0xd8], xmm0
push 0
mov eax, dword [ecx + 8]
mov byte [esp + 0xdd], 0x83
mov al, byte [eax]
and al, 0xf
or al, 0xc0
mov byte [esp + 0xdc], al
lea eax, [esp + 0xdc]
push eax
push ecx
mov ecx, dword [ecx]
call fcn.004154a0
jmp 0x40ac5e
xor eax, eax
mov dword [esp + 0x70], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0x68]
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
call fcn.00406490
cmp dword [esp + 0x6c], 0
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
je 0x40aba7
cmp dword [esp + 0x70], 8
lea eax, [esp + 0x5c]
push 0x64
cmovae eax, dword [esp + 0x60]
movzx eax, word [eax]
push eax
push dword [ecx + 0x5cc]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esp + 0x70], 8
jb 0x40abba
push dword [esp + 0x5c]
call fcn.00455fa6
add esp, 4
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push 0x4a56d0
call fcn.00417103
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
call fcn.00412100
xor eax, eax
mov dword [esp + 0xa0], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0x98]
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], ax
call fcn.00406490
cmp dword [esp + 0x9c], 0
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
je 0x40ac45
cmp dword [esp + 0xa0], 8
lea eax, [esp + 0x8c]
push 2
cmovae eax, dword [esp + 0x90]
movzx eax, word [eax]
push eax
push dword [ecx + 0x5d0]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esp + 0xa0], 8
jb 0x40ac5e
push dword [esp + 0x8c]
call fcn.00455fa6
add esp, 4
lea ecx, [esp + 0x154]
call fcn.00403d20
test eax, eax
jne 0x40aca2
mov eax, dword [esp + 0x13c]
lea ecx, [esp + 0x13c]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40ac90
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x40aca2
push 0
call fcn.00406020
mov eax, dword [esp + 0xf4]
mov edx, dword [eax]
xor al, al
mov dword [esp + 0xf0], edx
lea ecx, [edx + 0x7c]
xchg byte [ecx], al
mov eax, dword [edx + 0x78]
cmp eax, 0xffffffff
je 0x40acd6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xf0]
mov dword [eax + 0x78], 0xffffffff
push 1
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], ax
call fcn.00406490
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x34]
call fcn.00411f10
cmp dword [esp + 0x138], 8
jb 0x40ad1d
push dword [esp + 0x124]
call fcn.00455fa6
add esp, 4
xor eax, eax
mov dword [esp + 0x138], 7
mov dword [esp + 0x134], 0
mov word [esp + 0x124], ax
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x10570], 3
call fcn.0040cf50
lea eax, [esp + 0x1b4]
mov dword [esp + method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
push eax
call fcn.00456219
add esp, 4
mov byte [esp + 0x10570], 2
or esi, 0xffffffff
mov edi, dword [esp + 0xf8]
test edi, edi
je 0x40ada5
lea eax, [edi + 4]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x40ada5
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
mov edx, esi
lock xadd dword [eax], edx
jne 0x40ada5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [esp + 0x10570], 1
mov edi, dword [esp + 0x108]
test edi, edi
je 0x40addb
lea eax, [edi + 4]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x40addb
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
mov edx, esi
lock xadd dword [eax], edx
jne 0x40addb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [esp + 0x10570], 0
mov edi, dword [esp + 0x100]
test edi, edi
je 0x40ae10
lea eax, [edi + 4]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x40ae10
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], esi
dec esi
jne 0x40ae10
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp dword [esp + 0x120], 8
jb 0x40ae29
push dword [esp + 0x10c]
call fcn.00455fa6
add esp, 4
mov ecx, dword [esp + 0x10568]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10554]
xor ecx, esp
call fcn.0045755a
mov esp, ebp
pop ebp
ret