Function at 0x402230
Capabilities:
Create thread

Disassembly:
sub esp, 0xd44
mov eax, dword [esp + 0xd48]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x65
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0xd68]
lea ecx, [esp + 0x28]
push eax
push ecx
lea eax, [esp + 0x88c]
push edx
lea ecx, [esp + 0xafc]
push eax
push ecx
call fcn.00402760
mov esi, eax
add esp, 0x1c
cmp esi, ebx
je 0x4022bc
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40256c
push ebx
push 1
push 0x8400
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd44
ret 0x10
push str.TnlThreadCtlSemNano
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4052c4], eax
call ebp
mov esi, eax
mov eax, dword [0x4052c4]
cmp eax, ebx
push ebx
jne 0x402306
mov edx, dword [esp + 0x18]
push 1
push 0x8400
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd44
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00402fb0
mov esi, eax
cmp esi, ebx
je 0x40233a
mov eax, dword [esp + 0x14]
push ebx
push 1
push 0x8400
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd44
ret 0x10
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.00402de0
add esp, 0xc
cmp eax, ebx
jne 0x402744
push str.POST
mov ecx, 0x9b
sub esp, 0x26c
lea esi, [esp + 0xd58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x38c]
call fcn.00403030
push 0x40518c
mov ecx, 0x9b
sub esp, 0x26c
lea esi, [esp + 0xaec]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x73c]
call fcn.00403030
lea ecx, [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x64]
call fcn.00401000
lea ecx, [esp + 0x11c]
call fcn.00403370
test al, al
jne 0x40241e
mov ecx, dword [esp + 0x4c0]
push ecx
lea ecx, [esp + 0x5c]
call fcn.004011d0
lea eax, [esp + 0x58]
mov edx, dword [esp + 0x4c0]
push edx
push eax
call fcn.00402a10
add esp, 8
test eax, eax
je 0x402414
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
lea ecx, [esp + 0x58]
call fcn.00401330
mov esi, eax
jmp 0x40254b
mov edx, dword [esp + 0x10]
push edx
jmp 0x40269f
lea eax, [esp + 0x4cc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0x50]
mov dword [esp + 0x48], ecx
push eax
lea ecx, [esp + 0x48]
push ebx
push ecx
push 0x402c70
push ebx
push ebx
mov dword [esp + 0x64], edx
call esi
mov edi, eax
cmp edi, ebx
jne 0x402488
push 0x15fa5
lea ecx, [esp + 0x5c]
call fcn.004011d0
lea edx, [esp + 0x58]
push edx
call fcn.004029e0
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x402540
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x40269f
lea edx, [esp + 0x11c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], edx
lea eax, [esp + 0x58]
lea edx, [esp + 0x54]
mov dword [esp + 0x3c], eax
push edx
lea eax, [esp + 0x3c]
push ebx
push eax
push 0x402b30
push ebx
push ebx
mov dword [esp + 0x58], ecx
call esi
mov esi, eax
cmp esi, ebx
jne 0x4024e9
push 0x15fa5
lea ecx, [esp + 0x5c]
call fcn.004011d0
lea ecx, [esp + 0x58]
push ecx
call fcn.004029e0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40269a
mov edx, dword [esp + 0x10]
push edx
jmp 0x402545
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
push ebx
push ecx
push 2
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, eax
call ebp
mov eax, ebx
sub eax, 0
je 0x4025de
dec eax
je 0x40257b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
push ebx
lea ecx, [esp + 0x5c]
call fcn.004011d0
lea edx, [esp + 0x58]
push edx
call fcn.004029e0
mov esi, eax
add esp, 4
test esi, esi
je 0x40247e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
lea ecx, [esp + 0x58]
call fcn.004010d0
lea ecx, [esp + 0x4cc]
call fcn.00403130
lea ecx, [esp + 0x11c]
call fcn.00403130
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd44
ret 0x10
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [esp + 0x18], eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
xor edi, edi
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40260a
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
lea ecx, [esp + 0x58]
call fcn.004010d0
lea ecx, [esp + 0x4cc]
call fcn.00403130
lea ecx, [esp + 0x11c]
call fcn.00403130
mov eax, 0x15fa8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd44
ret 0x10
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [esp + 0x18], eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
xor esi, esi
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40260a
mov edx, dword [esp + 0x10]
push edx
jmp 0x4025a5
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40268a
lea eax, [esp + 0x58]
push eax
call fcn.004029e0
add esp, 4
mov ebp, eax
test esi, esi
je 0x402634
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
test edi, edi
je 0x402647
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call ebx
test ebp, ebp
je 0x402414
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
lea ecx, [esp + 0x58]
call fcn.004010d0
lea ecx, [esp + 0x4cc]
call fcn.00403130
lea ecx, [esp + 0x11c]
call fcn.00403130
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd44
ret 0x10
lea ecx, [esp + 0x11c]
call fcn.004033d0
test al, al
jne 0x4026d8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
lea ecx, [esp + 0x58]
call fcn.004010d0
lea ecx, [esp + 0x4cc]
call fcn.00403130
lea ecx, [esp + 0x11c]
call fcn.00403130
mov eax, 0x15f90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd44
ret 0x10
test esi, esi
je 0x4026f7
lea ecx, [esp + 0x11c]
call fcn.00401e40
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
test edi, edi
je 0x402716
lea ecx, [esp + 0x4cc]
call fcn.00401e40
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
lea ecx, [esp + 0x58]
call fcn.004010d0
lea ecx, [esp + 0x4cc]
call fcn.00403130
lea ecx, [esp + 0x11c]
call fcn.00403130
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd44
ret 0x10