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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
cmp dword [ebp + 8], 0x7e8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
jne 0x40fce1
mov eax, dword [esi + 0x20]
push 0x3e8
push eax
call dword [sym.imp.USER32.dll_KillTimer]
xor edi, edi
mov dword [esi + 0x164], 1
cmp dword [0x48e3d4], edi
je 0x40fa45
mov eax, dword [esi + 0x84]
mov edx, dword [eax + 0x1a4]
mov ecx, 0x64
cmp edx, ecx
jge 0x40f9e9
mov ecx, edx
cmp dword [eax + 0x1a8], ecx
je 0x40fa32
mov dword [eax + 0x1a8], ecx
mov ecx, dword [eax + 0x88]
cmp ecx, edi
je 0x40fa32
mov edx, dword [eax + 0x5c]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x60]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x64]
mov eax, dword [eax + 0x68]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov ecx, dword [ecx + 0x6c]
cmp ecx, edi
je 0x40fa32
push 1
lea edx, [esp + 0x2c]
push edx
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 2
mov ebx, esi
call fcn.0040f5f0
call fcn.0040f4c0
jmp 0x40fce1
mov eax, dword [esi + 0x180]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
jle 0x40fc68
add esi, 0x54
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], esi
jmp 0x40fa86
mov ebx, dword [esp + 0x10]
xor edi, edi
push 0x1a4
call fcn.004349ee
mov esi, eax
add esp, 4
cmp esi, edi
je 0x40faac
call fcn.00432770
mov dword [esi], vtable.CUIButton.0
mov dword [esi + 0x1a0], edi
jmp 0x40faae
xor esi, esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x6c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x48], eax
mov dword [esi + 0x70], edx
mov eax, 0xd
lea edx, [esp + 0x14]
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd0], eax
mov eax, dword [esp + 0x30]
push edx
mov dword [esi + 0x74], eax
push 0xd0
mov dword [esi + 0x78], ecx
call fcn.0040c9c0
mov edi, dword [esp + 0x14]
call fcn.00432ee0
mov dword [esi + 0x1a0], 1
test ebx, ebx
jl 0x40fcfd
mov edi, dword [esp + 0x1c]
cmp ebx, dword [edi + 0x180]
jge 0x40fcfd
mov eax, dword [edi + 0x17c]
add ebx, ebx
add ebx, ebx
add ebx, ebx
add eax, ebx
mov dword [esi + 0xb0], eax
mov eax, dword [edi + 0x108]
mov dword [esp + 0x20], ebx
mov ebx, esi
call fcn.0042fbc0
mov ebx, 1
cmp dword [esi + 0x84], ebx
je 0x40fb95
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x40fb73
mov eax, dword [esi + 0x88]
test eax, eax
je 0x40fb73
push ecx
push eax
call fcn.004317d0
test eax, eax
je 0x40fb73
push 0
mov ecx, eax
call fcn.00434020
mov ecx, dword [esi + 0x40]
or ecx, 4
mov eax, esi
call fcn.00432e90
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x84], ebx
test ecx, ecx
je 0x40fb95
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push esi
call eax
push 0x1a0
call fcn.004349ee
add esp, 4
test eax, eax
je 0x40fbb1
mov esi, eax
call fcn.00432770
mov esi, eax
jmp 0x40fbb3
xor esi, esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x48], ecx
mov dword [esi + 0xcc], 0x6a
mov dword [esi + 0xd0], 0x12
cmp edx, dword [edi + 0x180]
jge 0x40fcfd
mov eax, dword [edi + 0x17c]
mov ecx, dword [esp + 0x20]
lea ebx, [eax + ecx + 4]
call fcn.00432f40
or eax, 0xffffffff
cmp dword [esi + 0x8c], eax
je 0x40fc3d
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 0x88]
test eax, eax
je 0x40fc3d
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0x64]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x68]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x40fc3d
push 1
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esi + 4], 3
mov eax, dword [edi + 0x108]
mov ebx, esi
call fcn.0042fbc0
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
jl 0x40fa80
mov esi, edi
xor edi, edi
call fcn.0040da10
mov eax, dword [esi + 0x20]
push 1
push edi
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
push eax
call edi
mov eax, dword [esi + 0x84]
mov ecx, dword [eax + 0x1a4]
mov edx, 0x64
cmp ecx, edx
jge 0x40fc93
mov edx, ecx
cmp dword [eax + 0x1a8], edx
je 0x40fcd8
mov ecx, dword [eax + 0x88]
mov dword [eax + 0x1a8], edx
test ecx, ecx
je 0x40fcd8
mov edx, dword [eax + 0x5c]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x60]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x64]
mov eax, dword [eax + 0x68]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov ecx, dword [ecx + 0x6c]
test ecx, ecx
je 0x40fcd8
push 1
lea edx, [esp + 0x3c]
push edx
push ecx
call edi
push 2
mov ebx, esi
call fcn.0040f5f0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0043c30e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00436686
int3