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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59e228
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push eax
push ebx
call fcn.004a0ed0
test eax, eax
jne 0x4bea28
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor edi, edi
or eax, 0xffffffff
push ebx
lea ebx, [esp + 0x40]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
call fcn.004a17f0
call fcn.00505ee0
mov dword [esp + 0x34], eax
mov byte [eax + 0x21], 1
mov eax, dword [esp + 0x34]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x34]
mov dword [eax], eax
mov eax, dword [esp + 0x34]
mov dword [eax + 8], eax
mov dword [esp + 0x38], edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x78], edi
mov esi, dword [ecx + 0xb4]
mov dword [esp + 0x24], esi
cmp esi, edi
je 0x4beb4a
mov eax, dword [esi + 8]
add esi, 8
push eax
mov eax, dword [esp + 0x18]
add eax, 0xd4
call fcn.004be7b0
push eax
call fcn.004be310
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
mov dword [esp + 0x18], eax
call fcn.004f2790
mov ebx, eax
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x4beae3
xor edx, edx
jmp 0x4beaeb
mov edx, dword [ebx + 8]
sub edx, eax
sar edx, 2
cmp eax, edi
je 0x4beb16
mov ecx, dword [ebx + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x4beb16
mov edx, dword [esi]
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x24]
mov dword [eax], edx
add eax, 4
mov dword [ebx + 8], eax
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
mov esi, edx
jmp 0x4beaa2
mov ecx, dword [ebx + 8]
cmp eax, ecx
mov dword [esp + 0x18], ecx
jbe 0x4beb2a
call fcn.00565fa7
mov ecx, dword [esp + 0x18]
push ecx
push ebx
push esi
lea eax, [esp + 0x34]
push eax
mov eax, ebx
call fcn.00522680
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
mov esi, edx
jmp 0x4beaa2
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
lea esi, [esp + 0x30]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
lea esp, [esp]
cmp esi, edi
mov ebx, dword [esp + 0x34]
je 0x4beb70
lea edx, [esp + 0x30]
cmp esi, edx
je 0x4beb75
call fcn.00565fa7
cmp dword [esp + 0x1c], ebx
je 0x4bec1a
cmp esi, edi
jne 0x4beb88
call fcn.00565fa7
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 4]
jne 0x4beb96
call fcn.00565fa7
mov ebx, dword [esp + 0x1c]
mov esi, dword [ebx + 0x14]
add ebx, 0x10
cmp esi, dword [ebx + 8]
jbe 0x4bebb0
call fcn.00565fa7
lea ebx, [ebx]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp ecx, dword [edx + 4]
jne 0x4bebc2
call fcn.00565fa7
mov edi, dword [ebx + 8]
cmp dword [ebx + 4], edi
jbe 0x4bebcf
call fcn.00565fa7
cmp ebx, ebx
je 0x4bebd8
call fcn.00565fa7
cmp esi, edi
je 0x4bec06
cmp esi, dword [ebx + 8]
jb 0x4bebe6
call fcn.00565fa7
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
push edx
mov edx, dword [ebp + 8]
push edx
call eax
cmp esi, dword [ebx + 8]
jb 0x4bec01
call fcn.00565fa7
add esi, 4
jmp 0x4bebb0
lea esi, [esp + 0x18]
call fcn.00501220
mov esi, dword [esp + 0x18]
xor edi, edi
jmp 0x4beb60
cmp dword [esp + 0x44], edi
mov esi, dword [ebp + 8]
je 0x4bec31
mov ecx, dword [esp + 0x48]
mov edx, dword [esi]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x4c], edi
je 0x4bec45
mov eax, dword [esp + 0x50]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [esp + 0x3c], edi
je 0x4bec59
mov edx, dword [esp + 0x40]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [esp + 0x54], edi
je 0x4bec6d
mov ecx, dword [esp + 0x58]
mov edx, dword [esi]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [esp + 0x78], 0xffffffff
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx]
push esi
lea eax, [esp + 0x34]
push eax
mov edx, eax
push ecx
push edx
lea edx, [esp + 0x38]
push edx
mov edi, eax
call fcn.00500ec0
mov eax, dword [esp + 0x34]
push eax
call fcn.00563626
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8