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

Disassembly:
push 0xffffffffffffffff
push 0x584d38
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5c]
mov ebx, ecx
cmp dword [ebx + 0x168], 1
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
jne 0x4fd680
mov edi, dword [ebx + 0x27c]
cmp dword [ebx + 0x278], edi
jbe 0x4fd5d8
call fcn.00553698
mov esi, dword [ebx + 0x278]
cmp esi, dword [ebx + 0x27c]
jbe 0x4fd5eb
call fcn.00553698
cmp esi, edi
je 0x4fd60d
mov eax, dword [ebx + 0x27c]
call fcn.0050b490
mov edi, dword [ebx + 0x27c]
mov esi, eax
call fcn.0050b770
mov dword [ebx + 0x27c], esi
mov esi, dword [ebx + 0x25c]
cmp dword [ebx + 0x258], esi
lea edi, [ebx + 0x254]
jbe 0x4fd626
call fcn.00553698
mov ebp, dword [edi + 4]
cmp ebp, dword [edi + 8]
jbe 0x4fd633
call fcn.00553698
push esi
push edi
push ebp
push edi
lea eax, [esp + 0x30]
push eax
call fcn.00508080
mov edi, dword [ebx + 0x28c]
cmp dword [ebx + 0x288], edi
jbe 0x4fd654
call fcn.00553698
mov esi, dword [ebx + 0x288]
cmp esi, dword [ebx + 0x28c]
jbe 0x4fd667
call fcn.00553698
cmp esi, edi
je 0x4fd680
mov edx, esi
mov esi, dword [ebx + 0x28c]
mov ecx, edi
call fcn.0050b4f0
mov dword [ebx + 0x28c], eax
or eax, 0xffffffff
lea esi, [ebx + 0x264]
mov dword [ebx + 0x174], 0
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x178], eax
mov dword [ebx + 0x180], eax
mov dword [ebx + 0x184], eax
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x4fd6b5
call fcn.00553698
mov ebp, dword [esi + 4]
cmp ebp, dword [esi + 8]
jbe 0x4fd6c2
call fcn.00553698
push edi
push esi
push ebp
push esi
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00508190
xor esi, esi
mov dword [esp + 0x5c], esi
call fcn.00530e1f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4fd6f1
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], esi
mov esi, ebx
call fcn.00504360
lea ecx, [ebx + 0x40]
push ecx
push str.body
push ebx
call fcn.00502f20
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00402390
call fcn.00503260
mov edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x48]
mov cl, byte [ebx + 0x4c]
lea esi, [ebx + 0x1e8]
mov dword [esi], edx
mov dl, byte [ebx + 0x54]
xor ebp, ebp
mov dword [ebx + 0x1f8], eax
mov al, byte [ebx + 0x50]
mov byte [ebx + 0x1fc], cl
mov ecx, dword [ebx + 0x5c]
mov byte [ebx + 0x1fe], dl
mov dword [ebx + 0x1ec], ebp
mov dword [ebx + 0x1f4], ebp
mov dword [ebx + 0x1f0], ebp
mov byte [ebx + 0x1fd], al
mov byte [ebx + 0x1ff], 1
mov byte [ebx + 0x200], 0
mov byte [ebx + 0x201], 0
mov byte [ebx + 0x202], 0
mov byte [ebx + 0x203], 0
lea edx, [ebx + 0x204]
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bp
jne 0x4fd7a0
push esi
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ecx, dword [ebx + 0x160]
push eax
push ecx
mov dword [ebx + 0x244], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebx + 0x78]
mov dword [ebx + 0x138], eax
mov eax, dword [ebx + 0x160]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx + 0x160]
push ecx
push edx
mov dword [ebx + 0x13c], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [ebx + 0x160]
mov dword [ebx + 0x140], eax
mov eax, dword [ebx + 0x64]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetBkColor]
lea edx, [ebx + 0x1ac]
mov dword [ebx + 0x144], eax
mov eax, dword [ebx + 0x160]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov ecx, dword [ebx + 0x164]
cmp dword [ecx - 0xc], ebp
lea edi, [ebx + 0x164]
jle 0x4fd99d
mov ebp, dword [esp + 0x5c]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.table
call fcn.00402390
lea esi, [esp + 0x60]
call fcn.005049a0
mov edx, dword [esp + 0x5c]
sub edx, ebp
push edx
mov esi, eax
push ebp
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.004269f0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 1
call fcn.00402310
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4fd8a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
je 0x4fd8ee
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
call fcn.004ffad0
mov ebp, dword [esp + 0x58]
mov ecx, dword [eax]
mov edx, dword [ebp]
cmp edx, ecx
mov eax, dword [eax + 4]
jle 0x4fd8d9
mov ecx, edx
add dword [ebp + 4], eax
mov dword [ebp], ecx
cmp dword [ebx + 0x168], 0
jne 0x4fd8f2
add dword [esp + 0x3c], eax
jmp 0x4fd8f2
mov ebp, dword [esp + 0x58]
test esi, esi
je 0x4fd98e
mov esi, dword [esp + 0x5c]
add dword [esp + 0x5c], 6
lea edx, [esp + 0x5c]
push edx
mov eax, edi
call fcn.00505230
mov eax, dword [esp + 0x5c]
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.004269f0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 2
call fcn.00402310
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4fd957
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call fcn.004fda70
mov ecx, dword [eax]
mov edx, dword [ebp]
cmp edx, ecx
mov eax, dword [eax + 4]
jle 0x4fd97b
mov ecx, edx
add dword [ebp + 4], eax
mov dword [ebp], ecx
cmp dword [ebx + 0x168], 0
jne 0x4fd98e
add dword [esp + 0x3c], eax
mov ecx, dword [edi]
mov edx, dword [esp + 0x5c]
cmp edx, dword [ecx - 0xc]
jl 0x4fd840
mov eax, dword [ebx + 0x13c]
mov ecx, dword [ebx + 0x160]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [ebx + 0x144]
mov eax, dword [ebx + 0x160]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [ebx + 0x140]
mov edx, dword [ebx + 0x160]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebx + 0x138]
mov ecx, dword [ebx + 0x160]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [ebx + 0x26c]
cmp dword [ebx + 0x268], edi
lea esi, [ebx + 0x264]
jbe 0x4fda06
call fcn.00553698
mov ebp, dword [esi + 4]
cmp ebp, dword [esi + 8]
jbe 0x4fda13
call fcn.00553698
push edi
push esi
push ebp
push esi
lea edx, [esp + 0x40]
push edx
push esi
call fcn.00508190
mov eax, dword [ebx + 0x244]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4fda57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 8