Function at 0x417240
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 [0x4c2010]
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 0x4175ec
mov dword [esp], 0
nop
nop
nop
call fcn.00407620
test al, al
je 0x4172c0
mov dword [esp + 0x20], ebx
xor esi, esi
jmp 0x4172f3
mov esi, 0xffffffff
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00417860
add esp, 8
test al, al
je 0x4172f3
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.00432af0
mov ebp, eax
mov ebx, dword [eax + 0x100]
mov eax, dword [0x4c2030]
cmp eax, 0xffffffff
je 0x417340
cmp ebx, 0x40
jb 0x417328
push 0x27
push str._home_simon_mem_.build_workdirs_bob_u160jzna_putty_windows_cliloop.c
push str.extra_base___MAXIMUM_WAIT_OBJECTS
call fcn.0047ef54
add esp, 0xc
mov eax, dword [0x4c2030]
mov edi, ebp
mov dword [ebp + ebx*4], eax
mov dword [esp + 4], ebx
add ebx, 1
jmp 0x41734a
mov edi, ebp
mov dword [esp + 4], 0xffffffff
mov eax, dword [esp + 0x18]
lea ebp, [eax + ebx]
cmp ebp, 0x40
jb 0x41736e
push 0x2c
push str._home_simon_mem_.build_workdirs_bob_u160jzna_putty_windows_cliloop.c
push str.total_handles___MAXIMUM_WAIT_OBJECTS
call fcn.0047ef54
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x417393
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 0x417380
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 0x4173c0
push ebp
push esi
call fcn.00432b90
add esp, 8
jmp 0x41748f
cmp dword [0x4c2030], 0xffffffff
je 0x417410
cmp ebp, dword [esp + 4]
jne 0x417410
lea ebx, [esp + 0x14]
push ebx
call fcn.00411ee0
add esp, 4
cmp eax, 0xffffffff
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebp
je 0x41741f
xor esi, esi
nop
add esi, 1
push ebx
call fcn.00411f10
add esp, 4
cmp eax, 0xffffffff
jne 0x4173f0
jmp 0x417421
mov eax, ebp
sub eax, ebx
jb 0x41748f
add ebx, edi
cmp ebp, ebx
cmovb edi, eax
jmp 0x41748f
xor esi, esi
push 0
push 1
push esi
push 4
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x14]
call fcn.00414480
add esp, 0x18
mov dword [esp], eax
push ebx
call fcn.00411ee0
add esp, 4
cmp eax, 0xffffffff
je 0x417483
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.00411f10
add esp, 4
add ebx, 1
lea ecx, [ebp + 1]
cmp eax, 0xffffffff
jne 0x417460
cmp ebx, 0xffffffff
lea edi, [esp + 0x28]
jne 0x4174b8
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov ebp, dword [esp + 8]
call fcn.004075d0
cmp ebp, 0x102
jne 0x4175a0
mov ebx, dword [esp + 0x20]
jmp 0x4175a8
add esi, 4
add ebp, 0xffffffff
je 0x417483
mov ebx, dword [esi]
push edi
push 0
push ebx
call dword [0x4c2d34]
test eax, eax
jne 0x4174b0
push ebx
push 1
call fcn.00431df0
add esp, 8
mov eax, dword [esp + 0x28]
test al, 0x10
jne 0x4174f4
test al, 1
jne 0x417510
test al, 0x20
jne 0x41752c
test al, 4
jne 0x417548
test al, 2
jne 0x417564
test al, 8
je 0x4174b0
jmp 0x417584
mov eax, dword [esp + 0x3c]
shl eax, 0x10
or eax, 0x10
push eax
push ebx
call fcn.004118c0
add esp, 8
mov eax, dword [esp + 0x28]
test al, 1
je 0x4174df
mov eax, dword [esp + 0x2c]
shl eax, 0x10
or eax, 1
push eax
push ebx
call fcn.004118c0
add esp, 8
mov eax, dword [esp + 0x28]
test al, 0x20
je 0x4174e3
mov eax, dword [esp + 0x40]
shl eax, 0x10
or eax, 0x20
push eax
push ebx
call fcn.004118c0
add esp, 8
mov eax, dword [esp + 0x28]
test al, 4
je 0x4174e7
mov eax, dword [esp + 0x34]
shl eax, 0x10
or eax, 4
push eax
push ebx
call fcn.004118c0
add esp, 8
mov eax, dword [esp + 0x28]
test al, 2
je 0x4174eb
mov eax, dword [esp + 0x30]
shl eax, 0x10
or eax, 2
push eax
push ebx
call fcn.004118c0
add esp, 8
mov eax, dword [esp + 0x28]
test al, 8
je 0x4174b0
mov eax, dword [esp + 0x38]
shl eax, 0x10
or eax, 8
push eax
push ebx
call fcn.004118c0
add esp, 8
jmp 0x4174b0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
push esi
call fcn.00432c00
add esp, 4
push edi
mov esi, dword [esp + 0x78]
push esi
call dword [esp + pe_nt_image_headers32]
add esp, 8
test al, al
je 0x4175ec
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
push esi
call dword [esp + pe_nt_image_headers32]
add esp, 0xc
test al, al
jne 0x4172a0
push dword [esp]
call fcn.00414470
add esp, 4
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0046ea50
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret