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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49840b
push eax
mov dword fs:[0], esp
sub esp, 0x180
cmp dword [0x4bd3e4], 0
push ebx
push esi
push edi
je 0x40304c
cmp dword [0x4c0ffc], 0
jne 0x40304c
mov ecx, dword [0x4c17e0]
mov ebx, dword [0x4c178c]
xor eax, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
jle 0x402d16
lea edx, [ebx + 4]
mov esi, dword [ebp + 0xc]
cmp dword [edx], esi
je 0x402d16
inc eax
add edx, 0xc
cmp eax, ecx
jl 0x402d07
cmp eax, ecx
je 0x40304c
mov ecx, dword [0x4bd3f0]
lea eax, [eax + eax*2]
mov esi, dword [ebx + eax*4]
lea ebx, [ebx + eax*4]
mov eax, dword [0x4c0fe0]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
cmp eax, ecx
jl 0x402d5a
add ecx, 2
cmp eax, ecx
jge 0x40304c
mov ecx, dword [esi + 8]
mov al, byte [ecx]
cmp al, 0xd8
je 0x402d5a
cmp al, 0xd3
jne 0x40304c
mov dx, word [ebx + 8]
cmp dx, word [ebx + 0xa]
jge 0x40304c
mov eax, dword [0x4bd41c]
cmp dword [eax + 0x2c], 0
jg 0x40304c
mov ecx, dword [0x4c17f0]
push 0
mov edi, 1
push edi
call fcn.00401240
push 0x7f
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.00488d24
xor edx, edx
mov word [esp + 0x192], dx
mov eax, dword [esi + 8]
movzx ecx, byte [eax]
add esp, 0xc
push ecx
push edx
push edx
mov al, 1
call fcn.00403070
mov eax, dword [ebp + 8]
add esp, 0xc
call fcn.0046faf0
mov esi, dword [0x4bd41c]
mov dword [esi + 0xc0], eax
test eax, eax
je 0x402e3e
mov edi, eax
call fcn.004012f0
mov edi, eax
test edi, edi
je 0x402e39
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 0x402e13
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x402e13
push eax
call ebx
lea esi, [eax - 3]
mov edi, dword [edi + 0xc]
mov eax, esi
cmp esi, edi
jb 0x402e21
mov eax, 0x2af8
mov esi, dword [0x4bd41c]
mov ebx, dword [esp + 0x10]
cmp eax, edi
mov edi, 1
jae 0x402e3e
mov dword [esi + 0x48], eax
jmp 0x402e3e
mov edi, 1
mov eax, dword [ebp + 0x18]
xor ecx, ecx
cmp eax, ecx
je 0x402e59
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 [0x4c3c2c], eax
mov dword [0x4c3c28], 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.00454a50
test al, al
je 0x402f44
lea ecx, [esp + 0x28]
call fcn.0044af20
test eax, eax
sete al
mov byte [esp + 0xf], al
test al, al
je 0x402f2f
push esi
lea ecx, [esp + 0x2c]
call fcn.0044b000
mov edx, dword [ebp + 0x1c]
add esp, 4
mov dword [edx], eax
cmp dword [esp + 0x30], 5
jne 0x402f49
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x402f49
mov byte [esp + 0xf], 0
mov dword [esp + 0x194], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x402f6f
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0046e5f0
add esp, 0xc
mov ecx, dword [0x4c17f0]
sub dword [0x4c0fe0], edi
sub dword [0x4bd41c], 0xf8
push edi
push esi
push 0xffffffffffffffff
lea eax, [esp + 0x94]
push eax
call fcn.0046dd60
push esi
mov eax, 0x4c3168
call fcn.00415140
mov edx, dword [0x4c17e0]
cmp edx, dword [esp + 0x24]
jl 0x402fdc
mov ecx, dword [ebp + 0xc]
cmp dword [ebx + 4], ecx
jne 0x402fdc
movzx eax, word [ebx + 8]
cmp ax, si
je 0x403033
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 0x403033
mov ecx, dword [0x4c178c]
add ecx, 4
jmp 0x402ff0
mov ebx, dword [ebp + 0xc]
cmp dword [ecx], ebx
je 0x403019
add eax, edi
add ecx, 0xc
cmp eax, edx
jl 0x402ff0
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 [0x4c178c]
movzx ecx, word [eax + edx*4 + 8]
lea eax, [eax + edx*4 + 8]
cmp cx, si
je 0x403033
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