Function at 0x402180
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [0x4bf018]
xor eax, esp
mov dword [esp + 0x54], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push dword [esp + 0x7c]
call dword [esp + pe_nt_image_headers32]
add esp, 0xc
mov dword [esp], 0
test al, al
je 0x40252c
mov dword [esp], 0
nop
nop
nop
call fcn.004149b0
test al, al
je 0x402200
mov dword [esp + 0x20], ebx
xor esi, esi
jmp 0x402233
mov esi, 0xffffffff
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00414ab0
add esp, 8
test al, al
je 0x402233
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x20]
mov ecx, esi
sub esi, eax
sub eax, ebx
sub ecx, ebx
cmp eax, ecx
mov eax, 0
cmova esi, eax
call fcn.00414dd0
mov ebp, eax
mov ebx, dword [eax + 0x100]
mov eax, dword [0x4bf00c]
cmp eax, 0xffffffff
je 0x402280
cmp ebx, 0x40
jb 0x402268
push 0x27
push str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_windows_cliloop.c
push str.extra_base___MAXIMUM_WAIT_OBJECTS
call fcn.0047c544
add esp, 0xc
mov eax, dword [0x4bf00c]
mov edi, ebp
mov dword [ebp + ebx*4], eax
mov dword [esp + 4], ebx
add ebx, 1
jmp 0x40228a
mov edi, ebp
mov dword [esp + 4], 0xffffffff
mov eax, dword [esp + 0x18]
lea ebp, [eax + ebx]
cmp ebp, 0x40
jb 0x4022ae
push 0x2c
push str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_windows_cliloop.c
push str.total_handles___MAXIMUM_WAIT_OBJECTS
call fcn.0047c544
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4022d3
lea eax, [edi + ebx*4]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + ecx*4]
mov dword [eax + ecx*4], edx
add ecx, 1
cmp ecx, dword [esp + 0x18]
jb 0x4022c0
push esi
push 0
push edi
push ebp
mov esi, edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebp, eax
mov edi, dword [esp + 0x18]
cmp eax, dword [esi + 0x100]
jae 0x402300
push ebp
push esi
call fcn.00414e70
add esp, 8
jmp 0x4023cf
cmp dword [0x4bf00c], 0xffffffff
je 0x402350
cmp ebp, dword [esp + 4]
jne 0x402350
lea ebx, [esp + 0x14]
push ebx
call fcn.00411690
add esp, 4
cmp eax, 0xffffffff
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebp
je 0x40235f
xor esi, esi
nop
add esi, 1
push ebx
call fcn.004116c0
add esp, 4
cmp eax, 0xffffffff
jne 0x402330
jmp 0x402361
mov eax, ebp
sub eax, ebx
jb 0x4023cf
add ebx, edi
cmp ebp, ebx
cmovb edi, eax
jmp 0x4023cf
xor esi, esi
push 0
push 1
push esi
push 4
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x14]
call fcn.00413470
add esp, 0x18
mov dword [esp], eax
push ebx
call fcn.00411690
add esp, 4
cmp eax, 0xffffffff
je 0x4023c3
mov ebx, 0xffffffff
mov ecx, 1
mov esi, dword [esp]
lea edi, [esp + 0x14]
nop
nop
nop
nop
nop
mov ebp, ecx
mov dword [esi + ebx*4 + 4], eax
push edi
call fcn.004116c0
add esp, 4
add ebx, 1
lea ecx, [ebp + 1]
cmp eax, 0xffffffff
jne 0x4023a0
cmp ebx, 0xffffffff
lea edi, [esp + 0x28]
jne 0x4023f8
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov ebp, dword [esp + 8]
call fcn.00414960
cmp ebp, 0x102
jne 0x4024e0
mov ebx, dword [esp + 0x20]
jmp 0x4024e8
add esi, 4
add ebp, 0xffffffff
je 0x4023c3
mov ebx, dword [esi]
push edi
push 0
push ebx
call dword [0x4bfcec]
test eax, eax
jne 0x4023f0
push ebx
push 1
call fcn.00405eb0
add esp, 8
mov eax, dword [esp + 0x28]
test al, 0x10
jne 0x402434
test al, 1
jne 0x402450
test al, 0x20
jne 0x40246c
test al, 4
jne 0x402488
test al, 2
jne 0x4024a4
test al, 8
je 0x4023f0
jmp 0x4024c4
mov eax, dword [esp + 0x3c]
shl eax, 0x10
or eax, 0x10
push eax
push ebx
call fcn.00411070
add esp, 8
mov eax, dword [esp + 0x28]
test al, 1
je 0x40241f
mov eax, dword [esp + 0x2c]
shl eax, 0x10
or eax, 1
push eax
push ebx
call fcn.00411070
add esp, 8
mov eax, dword [esp + 0x28]
test al, 0x20
je 0x402423
mov eax, dword [esp + 0x40]
shl eax, 0x10
or eax, 0x20
push eax
push ebx
call fcn.00411070
add esp, 8
mov eax, dword [esp + 0x28]
test al, 4
je 0x402427
mov eax, dword [esp + 0x34]
shl eax, 0x10
or eax, 4
push eax
push ebx
call fcn.00411070
add esp, 8
mov eax, dword [esp + 0x28]
test al, 2
je 0x40242b
mov eax, dword [esp + 0x30]
shl eax, 0x10
or eax, 2
push eax
push ebx
call fcn.00411070
add esp, 8
mov eax, dword [esp + 0x28]
test al, 8
je 0x4023f0
mov eax, dword [esp + 0x38]
shl eax, 0x10
or eax, 8
push eax
push ebx
call fcn.00411070
add esp, 8
jmp 0x4023f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
invalid