Function at 0x4046c0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x493c16
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c3aa8]
xor eax, esp
push eax
lea eax, [esp + 0x344]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x354]
push 0x104
xor ebx, ebx
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.004553e0
add esp, 0xc
lea ecx, [esp + 0x34]
call fcn.00417a50
lea eax, [esp + 0x34]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x404725
mov ecx, dword [0x4aeb0c]
mov edx, dword [0x4aeb10]
mov dword [eax], ecx
mov ecx, dword [0x4aeb14]
mov dword [eax + 4], edx
lea edx, [esp + 0x34]
push edx
mov dword [eax + 8], ecx
call fcn.00417bb0
cmp eax, ebx
mov dword [esp + 0x18], eax
jge 0x4047aa
lea ecx, [esp + 0x20]
call fcn.00443594
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x354], ebx
call fcn.0044363b
push ebx
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.openStaticPopup
call fcn.00402950
call fcn.0041b650
lea ecx, [esp + 0x20]
mov dword [esp + 0x34c], 0xffffffff
call fcn.00443771
jmp 0x404bf4
lea edi, [esp + 0x1c]
call fcn.004175b0
push 1
mov dword [esp + 0x350], 1
call fcn.00404460
add esp, 4
push 1
call fcn.00403200
add esp, 4
xor esi, esi
call fcn.004071a0
call fcn.00418fb0
mov esi, dword [ebp]
push 8
call fcn.0042e66c
add esp, 4
mov dword [eax + 4], ebx
mov dword [eax], ebx
cmp esi, ebx
je 0x4047f7
mov dword [eax + 4], esi
push ebx
push ebx
push ebx
push ebx
push eax
push 0x40dab0
call fcn.0043a643
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4af3a8
call fcn.00402950
call fcn.00406f70
add esp, 4
mov ecx, 1
call fcn.004072c0
mov ecx, dword [ebp]
push ecx
call fcn.0040dde0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4af3ac
call fcn.00402950
call fcn.00406f70
mov edi, dword [ebp]
add esp, 4
call fcn.00404630
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4af3b0
call fcn.00402950
call fcn.00406f70
mov edx, dword [ebp]
add esp, 4
lea edi, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.00409640
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4af3b4
call fcn.00402950
call fcn.00406f70
add esp, 4
push 0x200
lea eax, [esp + 0x140]
push ebx
push eax
call fcn.004553e0
mov ecx, dword [ebp]
add esp, 0xc
push ecx
lea ecx, [esp + 0x140]
call fcn.0040cf60
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4af3b8
call fcn.00402950
call fcn.00406f70
add esp, 4
push 0x200
lea edx, [esp + 0x140]
push ebx
push edx
call fcn.004553e0
mov ecx, dword [ebp]
add esp, 0xc
lea eax, [esp + 0x13c]
push eax
call fcn.004093a0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4af3bc
call fcn.00402950
call fcn.00406f70
add esp, 4
xor esi, esi
call fcn.004071a0
push 0x200
lea ecx, [esp + 0x140]
push ebx
push ecx
call fcn.004553e0
mov eax, dword [ebp]
add esp, 0xc
lea edx, [esp + 0x13c]
push edx
push eax
call fcn.0040d750
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4af3c0
call fcn.00402950
call fcn.00406f70
add esp, 4
push 0x200
lea ecx, [esp + 0x140]
push ebx
push ecx
call fcn.004553e0
mov eax, dword [ebp]
add esp, 0xc
lea edx, [esp + 0x13c]
push edx
push eax
call fcn.0040d480
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4af3c4
call fcn.00402950
call fcn.00406f70
add esp, 4
push 0x200
lea ecx, [esp + 0x140]
push ebx
push ecx
call fcn.004553e0
mov eax, dword [ebp]
add esp, 0xc
lea edx, [esp + 0x13c]
push edx
push eax
call fcn.0040c840
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4af3c8
call fcn.00402950
call fcn.00406f70
add esp, 4
call fcn.0040cb50
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4af3cc
call fcn.00402950
call fcn.00406f70
add esp, 4
call fcn.004071a0
push 0x200
lea ecx, [esp + 0x140]
push ebx
push ecx
call fcn.004553e0
mov edx, dword [ebp]
add esp, 0xc
push edx
lea ecx, [esp + 0x140]
call fcn.00409830
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4af3d0
mov esi, eax
call fcn.00402950
call fcn.00406f70
add esp, 4
cmp esi, ebx
je 0x404ab8
xor esi, esi
call fcn.004071a0
push 0x200
lea eax, [esp + 0x140]
push ebx
push eax
call fcn.004553e0
mov edx, dword [ebp]
add esp, 0xc
lea ecx, [esp + 0x13c]
push ecx
push edx
call fcn.0040a050
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4af3d4
call fcn.00402950
call fcn.00406f70
add esp, 4
call fcn.004071a0
mov ecx, dword [ebp]
lea eax, [esp + 0x13c]
push eax
push ecx
call fcn.0040a560
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4af3d8
call fcn.00402950
call fcn.00406f70
add esp, 4
cmp dword [esp + 0x18], ebx
je 0x404b4d
xor esi, esi
call fcn.004071a0
push 0x200
lea edx, [esp + 0x140]
push ebx
push edx
call fcn.004553e0
mov eax, dword [ebp]
add esp, 0xc
push eax
lea ecx, [esp + 0x140]
call fcn.0040b5e0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4af3dc
call fcn.00402950
call fcn.00406f70
add esp, 4
call fcn.004071a0
push 0x200
lea ecx, [esp + 0x140]
push ebx
push ecx
call fcn.004553e0
mov eax, dword [ebp]
add esp, 0xc
lea edx, [esp + 0x13c]
push edx
push eax
call fcn.0040acb0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4af3e0
call fcn.00402950
call fcn.00406f70
add esp, 4
push 8
call fcn.0042e6a6
mov edx, dword [ebp]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push ebx
push edx
push 0x40c480
push ebx
push ebx
mov dword [esp + 0x30], ebx
call edi
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4af3e4
call fcn.00402950
call fcn.00406f70
add esp, 4
xor esi, esi
call fcn.004071a0
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
push 0x408cf0
push ebx
push ebx
mov dword [esp + 0x30], ebx
call edi
call fcn.0040dc30
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4af3e8
call fcn.00402950
call fcn.00406f70
add esp, 4
push ebx
call fcn.00404460
add esp, 4
lea ecx, [esi + 2]
call fcn.004072c0
push ebx
call fcn.00403200
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
je 0x404bf4
push eax
call fcn.0044fdf3
add esp, 4
mov ecx, dword [esp + 0x344]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.0044e1ea
add esp, 0x33c
ret