Function at 0x409620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xec]
cmp eax, 0xf3c
jge 0x431a95
inc eax
mov dword [esp + 0x24], edi
mov dword [edi + 0xec], eax
cmp eax, 1
je 0x4099c0
cmp byte [edi + 0xfc], 0
mov byte [edi + 0x144], 0
jne 0x4097c6
lea ebx, [ebx]
cmp byte [edi + 0x144], 0
jne 0x4097c6
cmp byte [0x4a85cb], 0
jne 0x4096ca
cmp byte [0x4b9758], 0
jne 0x431ab3
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x78]
push eax
call esi
test eax, eax
jne 0x409960
cmp byte [0x4a85ce], 1
je 0x431adb
cmp dword [edi + 0xf8], 1
je 0x432408
cmp dword [0x4b9714], 0
jne 0x431af8
cmp byte [0x4a85d4], 1
je 0x431ba8
cmp dword [edi + 0x460], 0
jne 0x431bc2
cmp byte [0x4b972c], 0
jne 0x431d13
push edi
call fcn.004095f0
cmp al, 1
je case.default.0x4321bb
cmp byte [0x4b98a0], 0
jne 0x431f39
mov eax, dword [edi + 0xf8]
cmp eax, 7
je 0x431fb4
cmp eax, 8
je 0x43201f
cmp eax, 9
je 0x43201f
cmp eax, 2
je 0x40990f
cmp eax, 3
je 0x40990f
cmp eax, 4
je 0x40990f
cmp eax, 5
je 0x40990f
cmp eax, 6
je 0x40990f
mov ecx, dword [ebp + 8]
mov dword [edi + 0xf4], ecx
mov eax, ecx
inc ecx
mov dword [ebp + 8], ecx
cmp eax, dword [0x4ba1e8]
jg 0x4322e5
test eax, eax
jle 0x4322e5
shl eax, 4
add eax, dword [0x4ba21c]
je 0x4322e5
mov esi, eax
mov edx, dword [esi + 4]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edx, dword [edx]
movsx eax, word [edx + 8]
cmp eax, ebx
jne 0x4097ee
lea edx, [ebp + 8]
push edx
push esi
push edi
call fcn.0040b3a0
cmp byte [edi + 0xfc], 0
je 0x409670
mov eax, dword [edi + 0xec]
mov byte [edi + 0x144], 0
cmp eax, 1
je 0x4099eb
dec eax
mov dword [edi + 0xec], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x34
jne 0x409890
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x4c]
push eax
push esi
push edi
lea eax, [esp + 0x24]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], ebx
call fcn.00409ae0
test eax, eax
jne 0x409835
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4]
cmp word [eax + 8], 0x7f
jne 0x432356
mov esi, dword [esp + 0x54]
cmp esi, ebx
je 0x40985a
mov eax, dword [esi + 0xc]
dec dword [eax]
mov ecx, dword [esi + 0xc]
cmp dword [ecx], ebx
je 0x432371
push esi
call fcn.00411076
add esp, 4
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x50]
cmp eax, 8
je 0x43238d
cmp eax, 0xa
je 0x4323ae
cmp eax, 5
je 0x4323c5
cmp eax, 0xb
je 0x4323d3
cmp eax, 0xc
jne case.default.0x4321bb
jmp 0x4323f1
dec eax
cmp eax, 0x7e
ja case.0x4098a1.2
movzx eax, byte [eax + 0x409a54]
jmp dword [eax*4 + 0x409a40]
push edi
mov eax, esi
call fcn.004093f0
jmp case.default.0x4321bb
xor eax, eax
lea ecx, [esp + 0xb0]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xbc], eax
push ecx
lea eax, [esp + 0x18]
mov edx, esi
mov ebx, edi
mov dword [esp + 0xbc], 1
call fcn.004090f0
test eax, eax
jne 0x4098fe
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x14]
mov eax, dword [edx + eax*4]
cmp word [eax + 8], 0x7f
jne 0x4322f4
lea esi, [esp + 0xb0]
call fcn.00409370
jmp case.default.0x4321bb
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x2f0], 0
je 0x409945
mov esi, dword [edi + 0x2f8]
call fcn.0040c9f0
xor ecx, ecx
cmp edx, ecx
jl 0x409945
mov ebx, ecx
jg 0x4099cc
cmp eax, dword [edi + 0x2f0]
jae 0x4099cc
mov eax, dword [edi + 0xf8]
cmp eax, 3
jl case.default.0x4321bb
jmp 0x4321af
cmp dword [esp + 0x6c], 0x12
je 0x431ac5
lea ecx, [esp + 0x68]
push ecx
mov ecx, 0x4b9720
call fcn.0040d5a0
test eax, eax
jne 0x4099a7
lea edx, [esp + 0x68]
push edx
mov ebx, 0x4b9720
call fcn.0040d5c0
test eax, eax
jne 0x4099a7
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea edx, [esp + 0x78]
push edx
call esi
test eax, eax
je 0x4096b0
jmp 0x409960
mov esi, edi
call fcn.004103f0
jmp 0x409656
cmp dword [edi + 0xf8], 2
jne 0x432078
mov byte [edi + 0x144], 1
mov dword [edi + 0xf8], ebx
jmp case.default.0x4321bb
mov esi, edi
call fcn.00410370
cmp byte [edi + 0xfc], 1
je 0x4097e3
mov ebx, edi
call fcn.00401cc0
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov ecx, dword [0x4a8600]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x140]
push edx
call esi
test eax, eax
jle 0x4097e3
jmp 0x432425
push 0xffffffffffffffff
push 0x9a
push edi
mov byte [0x4a85ca], 0
call fcn.00465df6
mov eax, 1
jmp 0x4097e5
cmp dword [edi + 0xf8], 0
je 0x4096ca
jmp 0x409693
mov byte [edi + 0xfc], 1
mov dword [edi + 0xf8], 1
jmp 0x4096b0
mov byte [0x4a85d4], 0
mov byte [0x4a85ce], 0
mov dword [edi + 0xf8], 1
jmp 0x4096bd
mov eax, dword [0x4b9718]
mov ebx, dword [eax]
call fcn.00435c65
mov eax, dword [edi + 0x1b0]
xor esi, esi
test eax, eax
je 0x431b3b
mov ecx, dword [edi + 0x1ac]
mov edx, dword [ecx]
cmp dword [edx], 0
je 0x431b2f
mov edx, dword [edx]
cmp dword [edx], ebx
je 0x431b3b
inc esi
add ecx, 4
cmp esi, dword [edi + 0x1b0]
jb 0x431b1a
cmp esi, eax
je 0x4096d7
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0xf4]
push ecx
mov ecx, dword [edi + 0x1ac]
lea edx, [esp + 0xec]
push edx
mov edx, dword [ecx + esi*4]
lea eax, [esp + 0x70]
push eax
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push ecx
push edi
call fcn.0045ecd8
mov edx, dword [edi + 0x1ac]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax]
mov ebx, dword [esp + 0x64]
add ecx, 0x18
inc ebx
push ecx
lea esi, [edi + 0x14c]
mov dword [esp + 0x68], ebx
call fcn.0040e580
push 0
push 1
push ebx
push edi
call fcn.004829a2
jmp case.default.0x4321bb
cmp byte [0x4a85cb], 0
jne 0x4096e4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.default.0x4321bb
cmp byte [0x4ba63c], 0
jne 0x4096f1
mov ebx, dword [edi + 0x458]
mov byte [0x4ba63c], 1
mov dword [esp + 0x44], 0
mov dword [esp + 0x14], ebx
push ecx
lea edx, [esp + 0x18]
mov dword [esp], 0
push edx
call fcn.00446dee
test al, al
je 0x431ca4
mov eax, dword [ebx]
cmp byte [eax + 0x11], 0
jne 0x431c8c
mov esi, dword [eax + 0x14]
mov dword [esp + 0x18], eax
call fcn.0040c9f0
test edx, edx
jl 0x431c8c
jg 0x431c35
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x431c8c
inc dword [esp + 0x44]
mov esi, dword [ebx]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi + 0x14], eax
lea edx, [esp + 0xc8]
push edx
lea eax, [esp + 0xd0]
push eax
mov eax, dword [ebx]
lea ecx, [esp + 0xcc]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push ecx
push edi
call fcn.0045ecd8
mov eax, dword [esp + 0x60]
mov edx, dword [ebx]
push 0
inc eax
push 1
push eax
push edi
mov dword [esp + 0x70], eax
mov byte [edx + 0x10], 1
call fcn.004829a2
mov eax, dword [ebx]
mov byte [eax + 0x10], 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00444c78
mov ebx, dword [esp + 0x14]
jmp 0x431be8
mov eax, dword [edi + 0x458]
mov dword [esp + 0x14], eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp], 0
push ecx
call fcn.00446dee
test al, al
je 0x431cfc
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
cmp byte [eax + 0x11], 0
jne 0x431ce9
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00444c78
jmp 0x431cae
lea eax, [esp + 0x14]
push eax
lea eax, [edi + 0x458]
push eax
call fcn.00456d31
jmp 0x431ca4
cmp dword [esp + 0x44], 0
mov byte [0x4ba63c], 0
jg case.default.0x4321bb
jmp 0x4096f1
cmp byte [edi + 0x464], 1
je 0x4096fe
cmp byte [0x4b9758], 1
je 0x4096fe
lea ecx, [esp + 0x68]
push ecx
call fcn.0045082b
lea edx, [esp + 0x68]
push edx
push 0x4b9720
call fcn.0045656b
test al, al
je 0x431f2b
lea eax, [esp + 0x6c]
push eax
call fcn.004388b4
test al, al
jne 0x431d37
lea ecx, [esp + 0xec]
push ecx
lea edx, [esp + 0xe0]
push edx
mov edx, dword [esp + 0x74]
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x98]
push ecx
push edx
push edi
call fcn.0045ecd8
test al, al
je 0x431d37
xor ebx, ebx
mov edi, 1
lea esi, [esp + 0x30]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebx
call fcn.00409370
mov eax, dword [esp + 0x68]
mov dword [esp + 0x38], edi
mov edi, str._GUI_CTRLID
lea esi, [esp + 0xf4]
mov dword [esp + 0x30], eax
call fcn.00401d80
lea eax, [ebx + 2]
lea ecx, [ebx + 1]
lea edx, [esp + 0x30]
call fcn.00401ae0
mov ecx, esi
call fcn.004023b0
lea esi, [esp + 0x30]
call fcn.00409370
mov ecx, dword [esp + 0x7c]
mov edi, str._GUI_WINHANDLE
lea esi, [esp + 0x114]
mov dword [esp + 0x38], 7
mov dword [esp + 0x30], ecx
call fcn.00401d80
lea eax, [ebx + 2]
lea ecx, [ebx + 1]
lea edx, [esp + 0x30]
call fcn.00401ae0
mov ecx, esi
call fcn.004023b0
lea esi, [esp + 0x30]
call fcn.00409370
mov edx, dword [esp + 0x80]
mov edi, str._GUI_CTRLHANDLE
lea esi, [esp + 0x124]
mov dword [esp + 0x38], 7
mov dword [esp + 0x30], edx
call fcn.00401d80
lea eax, [ebx + 2]
lea ecx, [ebx + 1]
lea edx, [esp + 0x30]
call fcn.00401ae0
mov ecx, esi
call fcn.004023b0
mov eax, dword [esp + 0x8c]
mov esi, dword [esp + 0x24]
push ebx
push 1
inc eax
push eax
push esi
mov byte [esi + 0x464], 1
call fcn.004829a2
mov byte [esi + 0x464], bl
lea esi, [esp + 0x30]
jmp 0x431f14
xor ebx, ebx
mov edi, 1
lea esi, [esp + 0xa0]
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], ebx
call fcn.00409370
mov eax, dword [esp + 0x68]
mov dword [esp + 0xa8], edi
mov edi, str._TRAY_ID
lea esi, [esp + 0x104]
mov dword [esp + 0xa0], eax
call fcn.00401d80
lea eax, [ebx + 2]
lea ecx, [ebx + 1]
lea edx, [esp + 0xa0]
call fcn.00401ae0
mov ecx, esi
call fcn.004023b0
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
push ebx
push 1
inc ecx
push ecx
push esi
mov byte [esi + 0x465], 1
call fcn.004829a2
mov byte [esi + 0x465], bl
lea esi, [esp + 0xa0]
call fcn.00409370
lea ecx, [esp + 0x6c]
call fcn.004023b0
mov edi, dword [esp + 0x24]
jmp case.default.0x4321bb
lea ecx, [esp + 0x6c]
call fcn.004023b0
jmp 0x4096fe
cmp byte [edi + 0x465], 1
je 0x409719
lea ecx, [esp + 0x68]
push ecx
call fcn.0045082b
lea edx, [esp + 0x68]
push edx
push 0x4b9800
call fcn.00458a3d
test al, al
je 0x431fa6
lea eax, [esp + 0x6c]
push eax
call fcn.004388b4
test al, al
jne 0x431f50
lea ecx, [esp + 0xe0]
push ecx
lea edx, [esp + 0xdc]
push edx
mov edx, dword [esp + 0x74]
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
push edi
call fcn.0045ecd8
test al, al
je 0x431f50
jmp 0x431e89
lea ecx, [esp + 0x6c]
call fcn.004023b0
jmp 0x409719
mov edx, dword [edi + 0x450]
push 0xa
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x5c], eax
cmp eax, 0x102
je case.default.0x4321bb
mov ecx, dword [edi + 0x450]
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [edi + 0x450]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x5c]
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x18], eax
add ecx, edi
lea eax, [esp + 0x18]
call fcn.0040d7f0
mov byte [edi + 0x144], 1
mov dword [edi + 0xf8], 0
jmp case.default.0x4321bb
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x448], 0
je 0x432091
mov esi, dword [edi + 0x44c]
call fcn.0040c9f0
xor ecx, ecx
xor ebx, ebx
cmp edx, ecx
jl 0x432093
jg 0x43205d
cmp eax, dword [edi + 0x448]
jb 0x432093
mov eax, dword [edi + 0x454]
cmp eax, ebx
je 0x432078
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x454], ebx
mov edx, dword [edi]
mov ecx, dword [edx + 4]
add ecx, edi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.0040d7f0
jmp 0x4099d9
xor ebx, ebx
mov eax, dword [edi + 0xf8]
mov dword [esp + 0x18], ebx
cmp eax, 8
jne 0x43216b
mov edx, dword [edi + 0x438]
lea eax, [esp + 0x13]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x1f], 0
call fcn.00448058
add esp, 0xc
cmp byte [esp + 0x13], 1
jne case.default.0x4321bb
mov eax, dword [edi + 0x454]
mov dword [esp + 0x28], 0xcccccccc
test eax, eax
je 0x43212d
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x28], 0x103
jne 0x432116
mov edx, dword [edi + 0x454]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne case.default.0x4321bb
mov eax, dword [edi + 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x454], 0
cmp dword [edi + 0xf8], 8
jne 0x432179
mov ecx, dword [esp + 0x18]
fild dword [esp + 0x18]
test ecx, ecx
jns 0x432150
fadd qword [0x49d918]
mov eax, dword [edi]
fstp qword [esp + 0x18]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x18]
push edx
add ecx, edi
push ecx
call fcn.0045d355
jmp 0x43218c
cmp eax, 9
je 0x4320cf
jmp case.default.0x4321bb
mov eax, dword [edi]
mov edx, dword [esp + 0x28]
mov eax, dword [eax + 4]
push 0
push edx
add eax, edi
call fcn.00404100
mov ecx, dword [edi + 0x2f4]
push ecx
mov byte [edi + 0x144], 1
mov dword [edi + 0xf8], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.default.0x4321bb
sub eax, 3
cmp eax, 3
ja case.default.0x4321bb
jmp dword [eax*4 + 0x43245d]
push edi
call fcn.00474cf6
jmp 0x4321f0
push edi
call fcn.00474cf6
mov esi, eax
test esi, esi
js 0x4321fa
jg case.default.0x4321bb
jmp 0x432235
push 1
push edi
call fcn.004716bf
mov esi, eax
test esi, esi
jns 0x432227
mov ecx, dword [edi]
mov eax, esi
neg eax
push 0
push eax
mov eax, dword [ecx + 4]
add eax, edi
call fcn.004040c0
mov edx, dword [edi]
mov ecx, dword [edx + 4]
add ecx, edi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.0040d7f0
test esi, esi
je case.default.0x4321bb
test esi, esi
jle 0x4322a3
mov eax, dword [edi + 0xf8]
cmp eax, 5
je 0x43224d
cmp eax, 3
jne 0x4322a3
xor eax, eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x9c], eax
mov eax, dword [edi + 0x1d8]
mov ebx, dword [eax]
lea esi, [esp + 0x90]
mov dword [esp + 0x98], 1
call fcn.00409370
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 0
push esi
add eax, edi
push eax
mov dword [esp + 0xa4], 7
mov dword [esp + 0x9c], ebx
call fcn.0047844c
call fcn.00409370
mov ecx, dword [edi + 0x2f4]
push ecx
mov byte [edi + 0x144], 1
mov dword [edi + 0xf8], 0
call fcn.0043707d
add esp, 4
jmp case.default.0x4321bb
push 1
push edi
call fcn.004716bf
mov esi, eax
test esi, esi
js 0x4321fa
jle 0x432235
jmp case.default.0x4321bb
mov dword [edi + 0xf8], 1
jmp case.default.0x4321bb
movsx ecx, word [eax + 0xa]
push ecx
push 0x72
push edi
call fcn.00465df6
jmp 0x4098fe
lea ebx, [edi + 0x490]
push ebx
call fcn.004362e0
test al, al
jne 0x43232f
movsx edx, word [edx + 0xa]
push edx
push 0xa7
push edi
call fcn.00465df6
jmp case.default.0x4321bb
push ebx
lea eax, [esp + 0x18]
push eax
push esi
push edi
call fcn.00485140
jmp case.default.0x4321bb
movsx ecx, word [edx + 0xa]
push ecx
push 0x1388
push edi
call fcn.00465df6
jmp case.default.0x4321bb
movsx eax, word [eax + 0xa]
push eax
push 0x72
push edi
call fcn.00465df6
lea esi, [esp + 0x48]
call fcn.00409370
jmp case.default.0x4321bb
mov edx, dword [esi]
push edx
call fcn.0041295c
mov eax, dword [esi + 0xc]
add esp, 4
push eax
call fcn.00411076
add esp, 4
jmp 0x40984d
mov esi, dword [esp + 0x48]
cmp esi, ebx
je case.default.0x4321bb
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push esi
call fcn.00411076
add esp, 4
jmp case.default.0x4321bb
mov eax, dword [esp + 0x48]
cmp eax, ebx
je case.default.0x4321bb
push eax
call fcn.00448580
jmp case.default.0x4321bb
lea eax, [esp + 0x48]
call fcn.0040e750
jmp case.default.0x4321bb
mov esi, dword [esp + 0x48]
mov ecx, dword [esi + 4]
push ecx
call fcn.00411076
add esp, 4
push esi
call fcn.00411076
add esp, 4
jmp case.default.0x4321bb
mov eax, dword [esp + 0x48]
cmp eax, ebx
je case.default.0x4321bb
push eax
call fcn.0044f7d6
jmp case.default.0x4321bb
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
call fcn.0040d7f0
jmp 0x4097c6
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x134]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x140]
push edx
call esi
test eax, eax
jg 0x432425
jmp 0x4097e3