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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
mov esi, dword [0x5e12b8]
push edi
mov dword [esp + 0x20], esi
test esi, esi
je 0x4032a9
mov eax, dword [esi + 0x7ac]
mov ebx, dword [ebp + 8]
cmp eax, dword [ebx + 0xd4dc]
je 0x403016
push 1
mov dword [ebx + 0xd4dc], eax
mov eax, dword [ebx + 0xd458]
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [ebx + 0xc90c]
lea eax, [ebx + 0xbeb0]
lea edx, [esi + 0x730]
mov dword [esp + 0x18], 0
mov edi, 0x5e1390
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
add ebx, 0x150
jmp 0x403054
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x7ac]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x403096
mov esi, dword [ebx]
mov eax, dword [ebx + 0xb0c]
mov ecx, dword [ebx + 0xb04]
test esi, esi
je 0x4030bc
mov edx, eax
sub edx, ecx
js 0x40307e
cmp edx, esi
jb 0x4030c8
xor eax, eax
mov ecx, dword [ebx + 0x16e0]
push ecx
lea esi, [ebx + 0xb20]
call fcn.00434670
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x16d4], eax
cmp dword [ebx + 0x16d4], 0
mov eax, dword [edx - 4]
mov dword [esp + 0x24], eax
lea esi, [ebx - 0x70]
je 0x4030d4
mov ecx, dword [ebx + 0x16e0]
push ecx
jmp 0x4030f1
cmp eax, ecx
jl 0x40307e
cmp eax, dword [ebx + 0xb08]
jg 0x40307e
test esi, esi
je 0x403080
sub eax, ecx
mov eax, dword [ebx + eax*4 + 4]
jmp 0x403080
mov edx, dword [ebx + 0x16e0]
push edx
call fcn.00434670
mov eax, dword [ebx + 0x16e0]
push eax
mov eax, dword [esp + 0x28]
lea esi, [ebx + 0xb20]
call fcn.00434670
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx - 4]
mov eax, dword [esp + 0x18]
mov dword [eax*4 + 0x5e11e0], edx
mov edx, dword [ecx]
mov dword [eax*4 + 0x5e1200], edx
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x7ac], 0
je 0x40315f
cmp dword [ebx + 0x16d4], 0
mov eax, dword [ecx]
mov dword [esp + 0x24], eax
je 0x403136
mov ecx, dword [ebx + 0x16e0]
push ecx
jmp 0x403150
mov edx, dword [ebx + 0x16e0]
push edx
lea esi, [ebx - 0x70]
call fcn.00434670
mov eax, dword [ebx + 0x16e0]
push eax
mov eax, dword [esp + 0x28]
lea esi, [ebx + 0xb20]
call fcn.00434670
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
test eax, eax
je 0x403183
mov edx, dword [eax + 0x20]
mov ecx, dword [ecx + 4]
push 1
push 0
push edx
mov dword [eax + 0x78], ecx
call esi
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [0x5e1290]
inc eax
cmp eax, dword [edx + 8]
mov dword [esp + 0x24], eax
jle 0x4031b3
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
je 0x4031d2
push 1
mov dword [eax], 0
mov eax, dword [eax - 0x84]
push 0
push eax
jmp 0x4031d0
xor eax, eax
cmp dword [ecx + 8], eax
mov ecx, dword [esp + 0x14]
sete al
cmp eax, dword [ecx]
je 0x4031d2
mov edx, dword [ecx - 0x84]
push 1
push 0
mov dword [ecx], eax
push edx
call esi
mov eax, dword [edi]
lea ecx, [eax + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [edi - 4]
add eax, 0x5a
mov dword [esp + 0x2c], ecx
add ecx, 0xe
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
push 1
lea edx, [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x20]
push edx
push ecx
call esi
mov eax, dword [edi]
mov ecx, dword [edi + 4]
lea edx, [eax + 8]
mov dword [esp + 0x38], edx
lea edx, [ecx - 0xc]
add ecx, 2
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x38]
add eax, 0x5a
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x30], eax
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], edx
mov edx, dword [ecx + 0x20]
push eax
push edx
call esi
mov ecx, dword [edi]
mov eax, dword [edi - 4]
lea edx, [ecx + 0xf]
add ecx, 0x3c
add eax, 2
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x34], ecx
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x20]
push ecx
push eax
call esi
mov ecx, dword [esp + 0x24]
add dword [esp + 0x1c], 4
add dword [esp + 0x14], 0x160
add dword [esp + 0x10], 0x10
add edi, 0x10
add ebx, 0x17b0
cmp edi, 0x5e1410
mov dword [esp + 0x18], ecx
jl 0x403050
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4