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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49809b
push eax
mov dword fs:[0], esp
sub esp, 0x180
cmp dword [0x4bd3c0], 0
push ebx
push esi
push edi
je 0x40302c
cmp dword [0x4c0e94], 0
jne 0x40302c
mov ecx, dword [0x4c1678]
mov ebx, dword [0x4c1624]
xor eax, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
jle 0x402cf6
lea edx, [ebx + 4]
mov esi, dword [ebp + 0xc]
cmp dword [edx], esi
je 0x402cf6
inc eax
add edx, 0xc
cmp eax, ecx
jl 0x402ce7
cmp eax, ecx
je 0x40302c
mov ecx, dword [0x4bd3cc]
lea eax, [eax + eax*2]
mov esi, dword [ebx + eax*4]
lea ebx, [ebx + eax*4]
mov eax, dword [0x4c0e78]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
cmp eax, ecx
jl 0x402d3a
add ecx, 2
cmp eax, ecx
jge 0x40302c
mov ecx, dword [esi + 4]
mov al, byte [ecx]
cmp al, 0xd8
je 0x402d3a
cmp al, 0xd3
jne 0x40302c
mov dx, word [ebx + 8]
cmp dx, word [ebx + 0xa]
jge 0x40302c
mov eax, dword [0x4bd4c4]
cmp dword [eax + 0x2c], 0
jg 0x40302c
mov ecx, dword [0x4c1688]
mov edi, 1
push edi
call fcn.00401240
push 0x7f
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.00485434
xor edx, edx
mov word [esp + 0x192], dx
mov eax, dword [esi + 4]
movzx ecx, byte [eax]
add esp, 0xc
push ecx
push edx
push edx
mov al, 1
call fcn.00403050
mov eax, dword [ebp + 8]
add esp, 0xc
call fcn.0046b590
mov esi, dword [0x4bd4c4]
mov dword [esi + 0xc0], eax
test eax, eax
je 0x402e1c
mov edi, eax
call fcn.004012e0
mov edi, eax
test edi, edi
je 0x402e17
mov edx, dword [edi + 8]
mov ecx, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [esi + 0x44], edx
mov eax, dword [edi + 8]
push ecx
mov dword [esi + 0x4c], eax
call ebx
lea esi, [eax - 3]
cmp esi, dword [edi + 0xc]
jb 0x402df1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x402df1
push eax
call ebx
lea esi, [eax - 3]
mov edi, dword [edi + 0xc]
mov eax, esi
cmp esi, edi
jb 0x402dff
mov eax, 0x2af8
mov esi, dword [0x4bd4c4]
mov ebx, dword [esp + 0x10]
cmp eax, edi
mov edi, 1
jae 0x402e1c
mov dword [esi + 0x48], eax
jmp 0x402e1c
mov edi, 1
mov eax, dword [ebp + 0x18]
xor ecx, ecx
cmp eax, ecx
je 0x402e37
mov edx, dword [eax + 0x14]
mov dword [esi + 0x3c], edx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x40], edx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x48]
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x14]
lea edx, [esp + 0x58]
mov dword [esp + 0x3c], edx
cdq
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x68]
mov dword [esp + 0x40], eax
mov dword [esp + 0x68], edx
mov edx, dword [ebp + 8]
lea eax, [esp + 0x78]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov dword [0x4c38b4], eax
mov dword [0x4c38b0], eax
add word [ebx + 8], di
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
push esi
push 4
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x1a8], esi
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.00451670
test al, al
je 0x402f22
lea ecx, [esp + 0x28]
call fcn.00448c60
test eax, eax
sete al
mov byte [esp + 0xf], al
test al, al
je 0x402f0d
push esi
lea ecx, [esp + 0x2c]
call fcn.00448cc0
mov edx, dword [ebp + 0x1c]
add esp, 4
mov dword [edx], eax
cmp dword [esp + 0x30], 5
jne 0x402f27
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x402f27
mov byte [esp + 0xf], 0
mov dword [esp + 0x194], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x402f4d
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0046a0c0
add esp, 0xc
mov ecx, dword [0x4c1688]
sub dword [0x4c0e78], edi
sub dword [0x4bd4c4], 0xf8
push edi
push esi
push 0xffffffffffffffff
lea eax, [esp + 0x94]
push eax
call fcn.004698a0
push esi
mov eax, 0x4c3000
call fcn.00414e70
mov edx, dword [0x4c1678]
cmp edx, dword [esp + 0x24]
jl 0x402fba
mov ecx, dword [ebp + 0xc]
cmp dword [ebx + 4], ecx
jne 0x402fba
movzx eax, word [ebx + 8]
cmp ax, si
je 0x403013
dec eax
mov word [ebx + 8], ax
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp edx, esi
jle 0x403013
mov ecx, dword [0x4c1624]
add ecx, 4
lea esp, [esp]
mov ebx, dword [ebp + 0xc]
cmp dword [ecx], ebx
je 0x402ff9
add eax, edi
add ecx, 0xc
cmp eax, edx
jl 0x402fd0
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [eax + eax*2]
mov eax, dword [0x4c1624]
movzx ecx, word [eax + edx*4 + 8]
lea eax, [eax + edx*4 + 8]
cmp cx, si
je 0x403013
dec ecx
mov word [eax], cx
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret