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

Disassembly:
push 0xffffffffffffffff
push 0x465e9c
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e9028]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x114]
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x24], esi
call edx
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
lea ebx, [ebp + 0x328]
lea ecx, [ebx + 0x58]
test ecx, ecx
je 0x40be38
cmp dword [ecx + 0x20], 0
je 0x40be38
push 1
mov dword [ebx + 0xb0], eax
mov eax, dword [ebx + 0x78]
push 0
push eax
call edi
cmp dword [ebp + 0x3d4], 0
je 0x40be58
mov ecx, dword [ebp + 0x3a0]
push 1
push 0
push ecx
mov dword [ebp + 0x3d4], 0
call edi
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
mov dword [ebp + 0x3e0], eax
mov eax, ebx
mov dword [ebp + 0x3e4], edx
call fcn.0041b140
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
mov ecx, dword [ebx + 0x20]
push 1
push 0
push ecx
mov ebp, eax
mov dword [ebx + 0xf8], 0
call edi
mov edx, dword [ebx + 0x20]
push 1
push 0
push edx
mov dword [ebx + 0xf4], 0
call edi
mov eax, dword [ebx + 0x20]
push 1
push 0
push eax
mov dword [ebx + 0xfc], 0
call edi
mov ecx, dword [ebx + 0x20]
push 1
push 0
push ecx
mov dword [ebx + 0x108], 0
call edi
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x48]
call eax
mov edx, dword [ebp]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x54]
call eax
mov edx, dword [ebp]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x44]
call eax
cmp dword [esp + 0x20], 0
je 0x40bf30
mov ecx, dword [ebx + 0x20]
push 1
push 0
push ecx
mov dword [ebx + 0xf4], 1
call edi
jmp 0x40c1a9
cmp dword [esp + 0x1c], 0
je 0x40bf50
mov edx, dword [ebx + 0x20]
push 1
push 0
push edx
mov dword [ebx + 0xf8], 1
call edi
jmp 0x40c1a9
test eax, eax
je 0x40bf6d
mov eax, dword [ebx + 0x20]
push 1
push 0
push eax
mov dword [ebx + 0xfc], 1
call edi
jmp 0x40c1a9
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x4c]
call eax
test eax, eax
je 0x40bf9d
mov ecx, dword [ebx + 0x20]
push 1
push 0
push ecx
mov dword [ebx + 0x108], 1
call edi
jmp 0x40c1a9
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
mov dword [esp + 0x20], 0
call eax
test eax, eax
jbe 0x40c1a2
jmp 0x40bfc4
mov esi, dword [esp + 0x24]
mov edx, dword [ebp]
mov eax, dword [esp + 0x20]
mov edx, dword [edx + 0x10]
push eax
mov ecx, ebp
call edx
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov ecx, esi
call edx
mov edx, dword [edi]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0x30]
mov ecx, edi
call eax
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x40c000
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40c000
sub ecx, esi
sar ecx, 1
je 0x40c01b
mov cx, word [eax]
mov word [esp + 0x38], cx
jmp 0x40c022
mov word [esp + 0x38], 0x2a
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
mov ecx, edi
call eax
mov dword [esp + 0xc0], edx
mov edx, dword [edi]
mov dword [esp + 0xbc], eax
mov eax, dword [edx + 0x5c]
xor esi, esi
mov ecx, edi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], esi
call eax
mov dword [esp + 0xd0], edx
mov edx, dword [edi]
mov dword [esp + 0xcc], eax
mov eax, dword [edx + 0x3c]
mov ecx, edi
call eax
lea edx, [esp + 0x3a]
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, si
jne 0x40c070
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [esp + 0x10c], esi
mov edx, dword [edi]
mov eax, dword [edx + 0x2c]
mov ecx, edi
call eax
cmp eax, 7
ja case.0x40c0a0.4
jmp dword [eax*4 + 0x40c1d4]
mov dword [esp + 0x1c], 0x9b6cf2
push 0x469f6c
jmp 0x40c113
mov dword [esp + 0x1c], 0x9b6cf2
push 0x469f78
jmp 0x40c113
mov dword [esp + 0x1c], 0xa86d00
push 0x469f84
jmp 0x40c113
mov dword [esp + 0x1c], 0xbb4aaf
push 0x469f9c
jmp 0x40c113
mov dword [esp + 0x1c], 0x3f3f3f
push 0x469fa8
jmp 0x40c113
mov dword [esp + 0x1c], 0x277a81
push 0x469fb4
jmp 0x40c113
mov esi, 1
mov dword [esp + 0x1c], 0x969696
push 0x469fcc
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
lea edx, [esp + 0xd4]
mov edi, edi
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x40c130
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xf4], ecx
sub esp, 0xd0
mov dword [esp + 0x104], esi
mov edi, esp
mov ecx, 0x34
lea esi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0041ae30
lea ecx, [esp + 0x18]
mov dword [esp + 0x10c], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov esi, dword [esp + 0x20]
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
add esi, 1
mov ecx, ebp
mov dword [esp + 0x20], esi
call eax
cmp esi, eax
jb 0x40bfc0
mov esi, ebx
call fcn.0041af40
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.00462b77
add esp, 0xfc
ret 4