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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425591
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x430280]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, edi
je 0x406099
mov dword [esp + 0x68], ebx
mov dword [esp + 0x60], vtable.render_ui::CGraphDC.0
mov dword [esp + 0x64], vtable.render_ui::CGraphDC.1.0
push 1
push ebx
mov dword [esp + 0x108], edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x80]
mov edx, dword [esi + 0x84]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x88]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
cmp ecx, edi
je 0x405d5f
push edi
lea eax, [esp + 0x48]
call fcn.004104a0
jmp 0x405d76
mov eax, dword [esi + 0x6c]
cmp eax, edi
je 0x405d76
mov edx, dword [eax + 0x38]
mov edx, dword [edx + 0x24]
lea ecx, [eax + 0x38]
lea eax, [esp + 0x44]
push eax
call edx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [esi + 0x8c], edi
jne 0x405db6
mov eax, dword [esi + 0xa4]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
push edi
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x94]
lea edi, [esi + 0x90]
xor ecx, ecx
mov dword [esp + 0x14], eax
cmp eax, ecx
jne 0x405dd2
mov dword [esp + 0x14], ecx
jmp 0x405df9
mov edx, dword [eax + 4]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x34]
push ecx
push edx
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x405def
mov ecx, dword [esp + 0x14]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], edx
xor ecx, ecx
mov eax, dword [edi + 4]
mov dword [esp + 0x18], eax
cmp eax, ecx
jne 0x405e08
xor eax, eax
jmp 0x405e29
mov edx, dword [eax + 4]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
push ecx
push edx
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x405e25
mov ecx, dword [esp + 0x18]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
push edx
sub ecx, eax
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.00411220
lea eax, [esi + 0xec]
mov dword [esp + 0x38], eax
add eax, 4
push eax
mov dword [esp + 0x38], vtable.CThreadLocker.0
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x100], 1
mov eax, dword [esi + 0x114]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
push 2
push 0x4299a0
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
cdq
idiv dword [esp + 0x40]
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0xc0]
jae 0x405ee1
lea edi, [esi + 0xa8]
lea esp, [esp]
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
push ecx
lea ebx, [esp + 0x4c]
call fcn.00406970
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 0xc0]
jb 0x405ec0
mov ebx, dword [ebp + 8]
lea edx, [esp + 0x6c]
push edx
call fcn.004061f0
mov byte [esp + 0x100], 2
mov eax, dword [esi + 0xbc]
mov eax, dword [eax]
mov edi, dword [esi + 0xa8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
lea esp, [esp]
mov ecx, dword [esi + 0xbc]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0xa8]
test edi, edi
je 0x405f28
cmp edi, ecx
je 0x405f31
call fcn.0041597e
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x48]
je 0x405ffd
test edi, edi
jne 0x405f61
call fcn.0041597e
mov eax, dword [esp + 0x1c]
cmp eax, dword [edi + 0x14]
jne 0x405f56
call fcn.0041597e
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x20], 8
jb 0x405f65
mov eax, dword [eax + 0xc]
jmp 0x405f68
mov edi, dword [edi]
jmp 0x405f48
add eax, 0xc
push eax
lea edx, [esp + 0x78]
push edx
call fcn.00406ed0
add esp, 8
mov edi, eax
push 0xa
mov ecx, edi
call fcn.004080f0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx + edi]
xor ebx, ebx
test byte [eax + 8], 6
jne 0x405fa7
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x405fa7
mov ebx, 4
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
add ecx, edi
test ebx, ebx
je 0x405fc8
mov eax, dword [ecx + 8]
or eax, ebx
cmp dword [ecx + 0x28], 0
jne 0x405fc0
or eax, 4
push 0
push eax
call fcn.004083d0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x405ff9
call fcn.0041597e
xor eax, eax
mov edi, dword [esp + 0x1c]
cmp edi, dword [eax + 0x14]
jne 0x405fe5
call fcn.0041597e
mov edx, dword [edi]
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov eax, edx
jmp 0x405f10
mov eax, dword [eax]
jmp 0x405fd7
lea ecx, [esp + 0x44]
lea eax, [esp + 0x6c]
call fcn.00406320
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x406019
mov edx, dword [eax + 4]
jmp 0x40601c
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406021
push 0
sub eax, esi
lea ecx, [esp + 0x28]
push ecx
sar eax, 1
push eax
push edx
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
cmp dword [esp + 0x5c], edi
jb 0x406053
mov edx, dword [esp + 0x48]
push edx
call fcn.00415292
add esp, 4
mov eax, dword [esp + 0x14]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0xc0]
mov byte [esp + 0x100], 1
call fcn.00406290
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0xc4], vtable.std::ios_base.0
call fcn.004148dc
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4