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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6133ab
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x67f864]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov eax, dword [0x67f864]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], ebx
call fcn.00572ee2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x533ff7
push 0x80004005
call fcn.0044a870
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x228], 0
mov ecx, dword [esi + 0x5c]
lea edx, [ecx + ecx*2]
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x30], eax
lea edx, [ecx + ecx*2]
add edx, edx
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
push 0x5c
shr eax, 0x1f
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x178]
add eax, edx
push 0
push ecx
mov dword [esp + 0x4c], eax
call fcn.005d5de0
add esp, 0xc
lea edx, [esp + 0x174]
push edx
mov byte [esp + 0x18f], 1
mov byte [esp + 0x193], 0x12
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
lea edi, [esp + 0x24]
mov dword [esp + 0x18], eax
call fcn.00512b40
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0xa8]
cmp dword [esi + 0xa0], eax
je 0x5340cb
mov ecx, 1
mov dword [esi + 0xa0], ecx
mov dword [esi + 0xa4], ecx
mov ecx, dword [esi + 0xa0]
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jg 0x53462f
mov eax, dword [esi + 0x98]
cmp dword [eax - 0xc], 0
mov ebx, dword [esi + 0x5c]
jle 0x5341d3
mov ecx, dword [esp + 0x28]
movsx edx, word [esi + 0x58]
mov dword [esp + 0x58], ecx
lea ecx, [ebx + ebx*8]
add ecx, ecx
sub edx, ebx
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x60], edx
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ebx
mov dword [esp + 0x64], eax
xor eax, eax
cmp dword [esp + 0x1c], 1
push 0x48
sete al
push ebx
mov dword [esp + 0x64], ebx
lea eax, [eax + eax + 0xa]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
lea edi, [esp + 0x190]
mov dword [esp + 0x174], eax
mov dword [esp + 0x184], 0x2bc
mov byte [esp + 0x18f], 0x22
call fcn.004e0410
lea ecx, [esp + 0x174]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, dword [esp + 0x24]
mov edx, dword [edi + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0xa8]
mov eax, dword [esi + 0x98]
lea ecx, [esp + 0x58]
jne 0x5341a6
push 0
jmp 0x5341ab
push 0x400
push ecx
push 0xffffffffffffffff
push eax
mov ecx, edi
call edx
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
add ebx, dword [esp + 0x14]
jmp 0x5341d7
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x1c], 1
jne 0x5342d3
mov edx, dword [esi + 0x94]
cmp dword [edx - 0xc], 0
jle 0x5342d3
mov ecx, dword [esi + 0x5c]
lea edx, [ecx + ecx*4]
add edx, edx
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x28]
add ebx, eax
movsx eax, word [esi + 0x58]
push 0x48
mov dword [esp + 0x4c], edx
push ecx
sub eax, ecx
lea edx, [ecx + ebx]
push 0xa
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0x174], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x190]
mov dword [esp + 0x184], 0
mov byte [esp + 0x18f], 0x12
sub ecx, eax
mov edi, edi
movzx edx, word [eax]
mov word [eax + ecx], dx
add eax, 2
test dx, dx
jne 0x534260
lea eax, [esp + 0x174]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esi + 0xa8], 1
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x94]
lea ecx, [esp + 0x48]
jne 0x5342a8
push 0x10
jmp 0x5342ad
push 0x410
push ecx
push 0xffffffffffffffff
push eax
mov ecx, edi
call edx
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
add ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0xa4]
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add ebx, eax
cmp edi, dword [esi + 0x90]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
jg 0x53460a
lea ebx, [ebx]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x74]
push eax
push edi
lea ecx, [esp + 0x80]
lea ebx, [esp + 0x78]
lea edx, [esp + 0x84]
call fcn.00498ef0
mov ebx, dword [esp + 0x54]
add esp, 0x10
test ebx, ebx
jne 0x53434f
mov ecx, dword [esp + 0x40]
add dword [esp + 0x18], ecx
jmp 0x5345f7
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
push eax
lea esi, [esp + 0x80]
call fcn.0052b500
mov ecx, dword [esp + 0x88]
xor eax, eax
add esp, 4
mov dword [esp + 0x150], eax
mov dword [esp + 0x154], eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov dword [esp + 0x170], eax
lea eax, [esp + 0x1d4]
push eax
push 0x20
push ecx
call dword [sym.imp.GDI32.dll_GetTextFaceW]
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x114]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
lea eax, [esp + 0x1d4]
call fcn.004e14a0
fld1
mov eax, 0x10001
fstp dword [esp + 0x170]
mov ecx, esi
mov esi, dword [0x690ca0]
test esi, esi
mov dword [esp + 0x154], eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov word [esp + 0x168], ax
mov dword [esp + 0x150], ecx
je 0x5344d8
mov ecx, dword [esi + 0xc8]
mov edi, dword [esi + 0xc4]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
movzx eax, ch
add eax, edx
movzx edx, cl
add eax, edx
cmp eax, 0x120
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0x505fa
jge 0x534482
mov dword [esp + 0xf0], 0xffffff
mov dword [esp + 0xf4], 0xfafa05
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf8], edi
mov ecx, dword [esi + 0xc8]
mov eax, dword [esi + 0xc4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
xor ecx, ecx
jmp 0x5344b0
movzx edx, byte [esp + ecx + 0x38]
movzx eax, byte [esp + ecx + 0x3c]
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov byte [esp + ecx + 0x34], al
add ecx, 1
cmp ecx, 4
jl 0x5344b0
mov eax, dword [esp + 0x34]
mov dword [esp + 0xfc], eax
mov eax, 0x10001
mov dword [esp + 0x154], eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov word [esp + 0x168], ax
mov eax, dword [esp + 0x20]
call fcn.004e14a0
add eax, 1
push ebx
lea ecx, [esp + 0x154]
mov word [esp + 0x158], ax
mov word [esp + 0x15a], 0xe
mov word [esp + 0x16c], 0
call fcn.00467be0
mov cx, word [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov dx, word [ebx + 0x30]
mov edi, dword [esp + 0x30]
mov word [esp + 0x170], cx
mov ecx, dword [ebx + 0x34]
add ecx, dword [ebx + 0x30]
add dx, ax
add ecx, dword [esp + 0x34]
mov word [esp + 0x172], dx
movsx edx, word [edi + 0x5a]
sub edx, dword [edi + 0x5c]
add eax, ecx
xor ecx, ecx
add esp, 4
cmp eax, edx
setg cl
mov dword [esp + 0x18], eax
mov esi, ecx
test esi, esi
jne 0x5345a6
mov edx, dword [esp + 0x1c]
cmp edx, dword [edi + 0xa8]
jne 0x5345a6
push ecx
lea edx, [esp + 0x154]
mov ecx, ebx
call fcn.004679e0
add esp, 4
push ebx
call fcn.00467450
mov eax, dword [esp + 0x8c]
mov edi, dword [eax + 4]
add esp, 4
push eax
call fcn.0056bafc
xor ebx, ebx
add esp, 4
cmp edi, ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
je 0x5345eb
mov eax, dword [edi]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
push edi
call sub.gdiplus.dll_GdipFree
mov edi, dword [esp + 0x14]
cmp esi, ebx
mov esi, dword [esp + 0x2c]
jne 0x53460a
add edi, 1
cmp edi, dword [esi + 0x90]
mov dword [esp + 0x14], edi
jle 0x534310
mov eax, dword [esp + 0x1c]
add eax, 1
mov dword [esi + 0xa4], edi
cmp eax, dword [esi + 0xa8]
mov dword [esp + 0x1c], eax
jle 0x5340dd
mov ebx, dword [esp + 0x24]
mov ecx, eax
jmp 0x534633
mov edi, dword [esp + 0x14]
xor eax, eax
cmp edi, dword [esi + 0x90]
setle al
mov dword [esi + 0x9c], eax
cmp dword [ebx + 0xc], 0
je 0x53465b
test eax, eax
je 0x53465b
add dword [esi + 0xa8], 1
mov dword [esi + 0xa0], ecx
mov dword [esp + 0x228], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534686
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005ce60a
mov esp, ebp
pop ebp
ret 4