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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
mov eax, dword [0x4a1410]
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x4063fd
mov eax, dword [0x498d18]
push 0xfa
push eax
call fcn.00410150
add esp, 8
test eax, eax
je 0x4063fd
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x498d18], eax
mov ax, word [0x4a1488]
cmp ax, 9
je 0x4063e0
cmp ax, 0xa
je 0x4063e0
mov eax, dword [0x4661f8]
mov ebx, 1
cmp eax, ebx
je 0x4063e0
push ebx
lea ecx, [esp + 0x1b]
push ecx
push 0x56fa85
call fcn.004042b0
xor eax, eax
mov ecx, 0x1e
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ax, word [0x4a1488]
add esp, 0xc
cmp ax, bx
jne 0x405e42
push 2
lea edx, [esp + 0x24]
push edx
push 0x45682e4
call fcn.004042b0
add esp, 0xc
cmp word [esp + 0x20], 0
jne 0x405e00
push 0x118
push 0x168
call fcn.00404920
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x64
lea eax, [esp + 0x34]
push eax
push 0x56fbad
call fcn.004042b0
lea eax, [esp + 0x3c]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x405e20
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405e20
sub eax, edx
mov dword [esp + 0x28], eax
je 0x4063fd
push 0x45c820
lea ecx, [esp + 0x34]
push ecx
jmp 0x406380
cmp ax, 2
jne 0x4062bc
cmp byte [esp + 0x17], bl
jne 0x4063fd
push 4
lea edx, [esp + 0x28]
push edx
push 0x45682bc
call fcn.004042b0
push 0x32
lea eax, [esp + 0xd8]
push eax
push 0x512a3a8
call fcn.004042b0
push 4
lea ecx, [esp + 0x48]
push ecx
push 0x45682c0
call fcn.004042b0
mov eax, dword [esp + 0x50]
push 4
lea edx, [esp + 0x50]
lea eax, [eax + eax*8]
push edx
lea ecx, [eax*8 + 0x512a3a4]
push ecx
call fcn.004042b0
mov eax, dword [esp + 0x58]
imul eax, eax, 0x104
push 0x32
lea edx, [esp + 0x130]
push edx
add eax, 0x4603238
push eax
call fcn.004042b0
push 0x32
lea ecx, [esp + 0x70]
push ecx
push 0x56f985
call fcn.004042b0
lea eax, [esp + 0x78]
add esp, 0x48
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ee1
sub eax, edx
mov dword [esp + 0x20], eax
jne 0x405f0a
push 0xff
push 0x13c
call fcn.00404920
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405f14
sub eax, edx
push eax
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0044cfd0
add esp, 0xc
test eax, eax
jne 0x4060e1
mov edx, dword [0x498d40]
imul edx, edx, 0x114
push ebx
lea ecx, [esp + 0x1b]
push ecx
add edx, 0x56fa85
push edx
call fcn.004042b0
mov ecx, dword [0x498d40]
imul ecx, ecx, 0x114
push 0x18
lea eax, [esp + 0x40]
push eax
add ecx, 0x56f985
push ecx
call fcn.004042b0
mov al, byte [esp + 0x2f]
add esp, 0x18
cmp al, bl
jne 0x40600c
mov edx, dword [0x4a1698]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405f92
sub eax, esi
push eax
push edx
lea edx, [esp + 0x38]
push edx
call fcn.0044cfd0
add esp, 0xc
test eax, eax
jne 0x40600c
mov ecx, dword [0x498d40]
imul ecx, ecx, 0x114
push 2
lea eax, [esp + 0x1c]
push eax
add ecx, 0x56f980
push ecx
call fcn.004042b0
mov eax, dword [0x498d40]
imul eax, eax, 0x114
push 2
lea edx, [esp + 0x2c]
push edx
add eax, 0x56f982
push eax
call fcn.004042b0
movzx ecx, word [esp + 0x34]
movzx edx, word [esp + 0x30]
add ecx, 6
push ecx
add edx, 6
push edx
call fcn.00404920
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
jle 0x4063fd
mov ebp, 0x56f985
nop
push ebx
lea eax, [esp + 0x1b]
push eax
lea ecx, [ebp + 0x100]
push ecx
call fcn.004042b0
mov al, byte [esp + 0x23]
add esp, 0xc
cmp al, bl
jne 0x4063fd
push 0x18
lea edx, [esp + 0x34]
push edx
push ebp
call fcn.004042b0
mov edx, dword [0x4a1698]
mov eax, edx
add esp, 0xc
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406060
sub eax, edi
push eax
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0044cfd0
add esp, 0xc
test eax, eax
je 0x406093
mov eax, dword [esp + 0x24]
inc esi
add ebp, 0x114
cmp esi, eax
jl 0x406020
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
imul esi, esi, 0x114
push 2
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esi + 0x56f980]
push edx
call fcn.004042b0
push 2
lea eax, [esp + 0x2c]
push eax
add esi, 0x56f982
push esi
call fcn.004042b0
movzx ecx, word [esp + 0x34]
movzx edx, word [esp + 0x30]
add ecx, 6
push ecx
add edx, 6
push edx
call fcn.00404920
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xfc]
lea edx, [eax + 1]
jmp 0x4060f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4060f0
sub eax, edx
push eax
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0044cfd0
add esp, 0xc
test eax, eax
jne 0x406288
mov eax, dword [0x498d44]
imul eax, eax, 0x114
push ebx
lea edx, [esp + 0x1b]
push edx
add eax, 0x56fa85
push eax
call fcn.004042b0
mov edx, dword [0x498d44]
imul edx, edx, 0x114
push 0xa
lea ecx, [esp + 0x40]
push ecx
add edx, 0x56f985
push edx
call fcn.004042b0
mov al, byte [esp + 0x2f]
add esp, 0x18
cmp al, bl
jne 0x4061ec
mov edx, dword [0x4a169c]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406170
sub eax, esi
push eax
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0044cfd0
add esp, 0xc
test eax, eax
jne 0x4061ec
mov edx, dword [0x498d44]
imul edx, edx, 0x114
push 2
lea ecx, [esp + 0x1c]
push ecx
add edx, 0x56f980
push edx
call fcn.004042b0
mov ecx, dword [0x498d44]
imul ecx, ecx, 0x114
push 2
lea eax, [esp + 0x2c]
push eax
add ecx, 0x56f982
push ecx
call fcn.004042b0
movzx edx, word [esp + 0x34]
movzx eax, word [esp + 0x30]
add edx, 6
push edx
add eax, 6
push eax
call fcn.00404920
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [esp + 0x24]
push ecx
push 0x512a3a1
call fcn.004042b0
mov al, byte [esp + 0x2c]
add esp, 0xc
xor esi, esi
test al, al
jbe 0x4063fd
mov ebp, 0x56f985
push ebx
lea edx, [esp + 0x1b]
push edx
lea eax, [ebp + 0x100]
push eax
call fcn.004042b0
mov al, byte [esp + 0x23]
add esp, 0xc
cmp al, bl
jne 0x4063fd
push 0xa
lea ecx, [esp + 0x34]
push ecx
push ebp
call fcn.004042b0
mov edx, dword [0x4a169c]
mov eax, edx
add esp, 0xc
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406250
sub eax, edi
push eax
push edx
lea edx, [esp + 0x38]
push edx
call fcn.0044cfd0
add esp, 0xc
test eax, eax
je 0x406093
movzx eax, byte [esp + 0x20]
inc esi
add ebp, 0x114
cmp esi, eax
jl 0x406212
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esi + 0x4661b4]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0044c450
add esp, 8
test eax, eax
jne 0x45baa0
add esi, 4
cmp esi, 0x1c
jb 0x406290
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 3
jne 0x406325
cmp byte [esp + 0x17], bl
jne 0x4062f0
push 0x1e
lea edx, [esp + 0x34]
push edx
push 0x56f985
call fcn.004042b0
lea eax, [esp + 0x3c]
push 0x45c810
push eax
call fcn.0044c450
add esp, 0x14
jmp 0x406388
mov eax, dword [0x498d48]
test eax, eax
push 0x154
jne 0x406310
push 0x64
call fcn.00404920
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x190
call fcn.00404920
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 6
jne 0x4063a6
cmp byte [esp + 0x17], bl
jne 0x4063fd
push 0x14
lea ecx, [esp + 0x34]
push ecx
push 0x56f985
call fcn.004042b0
lea edx, [esp + 0x3c]
push 0x45c804
push edx
call fcn.0044c450
add esp, 0x14
test eax, eax
je 0x406376
push 0xf9
push 0x14f
call fcn.00404920
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x45c7fc
lea eax, [esp + 0x34]
push eax
call fcn.0044c450
add esp, 8
test eax, eax
jne 0x4063fd
push 0xfd
push 0x139
call fcn.00404920
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 0xb
jne 0x4063fd
cmp byte [esp + 0x17], bl
jne 0x4063fd
push 0x14
lea ecx, [esp + 0x34]
push ecx
push 0x56f985
call fcn.004042b0
lea edx, [esp + 0x3c]
push 0x45c7f0
push edx
call fcn.0044c450
add esp, 0x14
test eax, eax
je 0x4063fd
push 0x10e
jmp 0x406391
mov eax, dword [0x4a1528]
push 0
push 0x402
push eax
mov dword [0x4a1410], 0
call dword [sym.imp.USER32.dll_CheckDlgButton]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1388
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x40638c