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

Disassembly:
push 0xffffffffffffffff
push 0x4f2683
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x536ed4]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x254]
mov esi, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x74], ecx
lea edx, [esp + 0xa4]
push edx
xor ebp, ebp
mov dword [esp + 0x248], ebp
mov eax, dword [eax + 4]
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xa8]
push edx
push eax
mov dword [esp + 0x34], ebp
call sub.gdiplus.dll_GdipCreateFontFromLogfontW
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x260]
sub ecx, dword [esp + 0x258]
mov ebx, dword [esp + 0x264]
sub ebx, dword [esp + 0x25c]
mov eax, dword [esi + 4]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
mov dword [esp + 0x20], ebx
lea edx, [esp + 0x58]
fstp dword [esp + 0x44]
push edx
fild dword [esp + 0x24]
push eax
mov dword [esp + 0x60], ebp
fstp dword [esp + 0x28]
fldz
fst dword [esp + 0x8c]
fst dword [esp + 0x88]
fst dword [esp + 0x84]
fst dword [esp + 0x80]
fst dword [esp + 0x22c]
fstp dword [esp + 0x230]
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x64], eax
mov byte [esp + 0x244], 2
fld dword [0x517e40]
mov edi, dword [esp + 0x250]
fstp dword [esp + 0x24]
add edi, 0xfffffff0
push edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
call fcn.00401850
add eax, 0x10
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x244], 3
fld1
mov ecx, dword [0x502e58]
fst dword [esp + 0x1c]
mov edx, dword [0x502e5c]
fstp dword [esp + 0x18]
mov eax, 1
cmp dword [esp + 0x24c], eax
mov dword [esp + 0x22c], ecx
mov dword [esp + 0x230], edx
mov dword [esp + 0x88], ebp
jne 0x41fd76
cmp dword [edi + 0xc], eax
jle 0x41fa4b
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x254]
call fcn.00401a30
mov edx, dword [esp + 0x250]
lea ecx, [esp + 0x78]
push ecx
push edx
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x74]
lea esi, [esp + 0x6c]
call fcn.004202e0
fld dword [esp + 0x80]
fld dword [esp + 0x44]
mov edi, 1
fcompp
fnstsw ax
test ah, 5
jnp 0x41fa89
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp dword [eax - 4], 1
jle 0x41faa4
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x30]
call fcn.00401a30
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x230]
push edx
push eax
call fcn.004cfc5f
add esp, 0xc
cmp eax, ebp
je 0x41fb61
fldz
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x64]
fst dword [esp + 0x8c]
push ebp
fst dword [esp + 0x94]
push ebp
fst dword [esp + 0x9c]
lea ecx, [esp + 0x80]
fstp dword [esp + 0xa0]
push ecx
push ebp
lea edx, [esp + 0x9c]
push edx
push esi
push 0xffffffffffffffff
push eax
push ebx
call sub.gdiplus.dll_GdipMeasureString
cmp eax, ebp
je 0x41fb10
mov dword [esp + 0x68], eax
fld dword [esp + 0x80]
fld dword [esp + 0x44]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x41fb37
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x41fb37
fstp dword [esp + 0x24]
jmp 0x41fb39
fstp st(0)
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x230]
push ecx
push ebp
call fcn.004cfc5f
add dword [esp + 0x40], 1
add esp, 0xc
cmp eax, ebp
jne 0x41fac5
jmp 0x41fb69
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x28]
cmp edi, ebp
fld dword [esp + 0x24]
je 0x4201a3
cmp dword [esp + 0x34], 1
je 0x41fbfb
fild dword [esp + 0x34]
fmul dword [esp + 0x84]
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x41fbc2
fld dword [0x517e40]
fucomp st(3)
fnstsw ax
fstp st(2)
test ah, 0x44
jnp 0x41fbb4
fld dword [esp + 0x44]
fdiv dword [esp + 0x80]
fstp dword [esp + 0x1c]
fadd qword [0x517d48]
fdivp st(1)
fstp dword [esp + 0x18]
jmp 0x41fc19
fstp st(1)
fstp st(0)
fld dword [0x517e40]
fucompp
fnstsw ax
test ah, 0x44
jp 0x41fc0a
lea ecx, [esp + 0x2c]
call fcn.00401fb0
push ebx
call sub.gdiplus.dll_GdipDeleteGraphics
push esi
call sub.gdiplus.dll_GdipDeleteFont
lea ecx, [esp + 0x250]
call fcn.00401fb0
jmp 0x420207
fld dword [0x517e40]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x41fc19
fld dword [esp + 0x44]
fdiv dword [esp + 0x80]
fstp dword [esp + 0x1c]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
lea edx, [esp + 0x5c]
push edx
push esi
call sub.gdiplus.dll_GdipGetFamily
cmp eax, ebp
je 0x41fc38
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x14]
push eax
push esi
call sub.gdiplus.dll_GdipGetFontUnit
cmp eax, ebp
je 0x41fc4b
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push esi
mov dword [esp + 0x44], ecx
call sub.gdiplus.dll_GdipGetFontStyle
cmp eax, ebp
je 0x41fc66
mov dword [esp + 0x70], eax
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
push esi
call sub.gdiplus.dll_GdipGetFontSize
cmp eax, ebp
je 0x41fc7d
mov dword [esp + 0x70], eax
fld dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
fmul dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x30]
push ecx
fmul dword [esp + 0x38]
push edx
push edi
push ecx
fstp dword [esp + 0x4c]
mov dword [esp + 0x40], ebp
fld dword [esp + 0x4c]
fstp dword [esp]
push eax
call sub.gdiplus.dll_GdipCreateFont
mov edi, dword [esp + 0x30]
mov dword [esp + 0x228], eax
mov dword [esp + 0x224], edi
lea ecx, [esp + 0x104]
push ecx
push ebx
push edi
mov byte [esp + 0x250], 5
call sub.gdiplus.dll_GdipGetLogFontW
cmp eax, ebp
je 0x41fce2
mov dword [esp + 0x228], eax
lea edx, [esp + 0x104]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ecx, dword [esp + 0x74]
push eax
call fcn.004c1f11
push edi
call sub.gdiplus.dll_GdipDeleteFont
mov eax, dword [esp + 0x5c]
push eax
call sub.gdiplus.dll_GdipDeleteFontFamily
mov byte [esp + 0x244], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fd32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call sub.gdiplus.dll_GdipDeleteGraphics
push esi
call sub.gdiplus.dll_GdipDeleteFont
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x250]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fd6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x420209
mov edx, dword [esi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x28]
push eax
mov ecx, esi
call edx
cmp dword [edi + 0xc], 1
mov dword [esp + 0x4c], eax
jle 0x41fd9e
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x254]
call fcn.00401a30
mov edi, dword [esp + 0x250]
push edi
lea ecx, [esp + 0x1c]
call fcn.00401b10
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x54]
push edx
mov ecx, esi
call fcn.00416c50
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 0x41fde0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x258]
mov eax, dword [esp + 0x260]
lea edx, [ecx + ecx]
sub eax, edx
cmp dword [esp + 0x50], eax
mov dword [esp + 0x18], eax
jle 0x41fe05
mov dword [esp + 0x30], 1
lea eax, [edi - 0x10]
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x48], 1
mov dword [esp + 0x38], ebp
mov dword [esp + 0x60], eax
call fcn.00401850
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x24], edi
mov byte [esp + 0x244], 6
mov eax, dword [0x502e58]
mov ecx, dword [0x502e5c]
mov dword [esp + 0x224], eax
mov dword [esp + 0x228], ecx
mov dword [esp + 0x20], ebp
cmp dword [edi - 4], 1
jle 0x41fe68
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x28]
call fcn.00401a30
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x228]
push ecx
push edi
call fcn.004cfc5f
add esp, 0xc
cmp eax, ebp
je 0x41ff20
push eax
lea ecx, [esp + 0x40]
call fcn.00401b10
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0xa0]
push eax
mov ecx, esi
call fcn.00416c50
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esp + 0x90], ecx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41fed0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp edi, eax
jle 0x41fee3
mov edi, 1
add dword [esp + 68], edi
jmp 0x41feec
add dword [esp + 0x1c], edi
mov edi, 1
cmp dword [esp + 0x1c], eax
jle 0x41fefa
add dword [esp + 0x44], edi
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x228]
push edx
push ebp
call fcn.004cfc5f
add dword [esp + 0x40], edi
add esp, 0xc
cmp eax, ebp
jne 0x41fe86
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push ecx
mov ecx, esi
call edx
cmp dword [esp + 0x30], ebp
je 0x420175
cmp dword [esp + 0x34], 1
jle 0x41ffa5
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x44]
mov edx, eax
imul edx, ecx
cmp edx, ebx
jle 0x41ff6e
add ecx, 0xffffffff
imul ecx, eax
mov dword [esp + 0x4c], ecx
fild dword [esp + 0x4c]
fimul dword [esp + 0x18]
fild dword [esp + 0x54]
fimul dword [esp + 0x50]
fdivp st(1)
jmp 0x41ffad
lea ecx, [esp + 0x24]
call fcn.00401fb0
lea ecx, [esp + 0x2c]
call fcn.00401fb0
mov eax, dword [esp + 0x58]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x28]
push ecx
call sub.gdiplus.dll_GdipDeleteFont
lea ecx, [esp + 0x250]
call fcn.00401fb0
jmp 0x420207
fild dword [esp + 0x18]
fidiv dword [esp + 0x50]
mov eax, dword [esp + 0x14]
fstp dword [esp + 0x3c]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x1c4]
push edx
push 0x5c
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c8]
push ecx
push eax
mov dword [esp + 0x20], ebp
call sub.gdiplus.dll_GdipCreateFontFromLogfontW
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov esi, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipCreateFromHDC
mov edi, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
lea eax, [esp + 0x34]
push eax
push ebx
call sub.gdiplus.dll_GdipGetFamily
cmp eax, ebp
je 0x42002c
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x4c]
push ecx
push ebx
call sub.gdiplus.dll_GdipGetFontUnit
cmp eax, ebp
je 0x42003f
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x38], edx
call sub.gdiplus.dll_GdipGetFontStyle
cmp eax, ebp
je 0x42005a
mov dword [esp + 0x54], eax
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebx
call sub.gdiplus.dll_GdipGetFontSize
cmp eax, ebp
je 0x420071
mov dword [esp + 0x54], eax
fld dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
fmul dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push eax
push esi
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x44]
fstp dword [esp]
push ecx
mov dword [esp + 0x28], ebp
and al, 0x28
call sub.gdiplus.dll_GdipCreateFont
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], esi
lea edx, [esp + 0x164]
push edx
push edi
push esi
mov byte [esp + 0x250], 0xa
call sub.gdiplus.dll_GdipGetLogFontW
cmp eax, ebp
je 0x4200c9
mov dword [esp + 0x40], eax
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ecx, dword [esp + 0x74]
push eax
call fcn.004c1f11
push esi
call sub.gdiplus.dll_GdipDeleteFont
mov ecx, dword [esp + 0x34]
push ecx
call sub.gdiplus.dll_GdipDeleteFontFamily
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
push ebx
call sub.gdiplus.dll_GdipDeleteFont
mov byte [esp + 0x244], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420125
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x244], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42014d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov edx, dword [esp + 0x28]
push edx
call sub.gdiplus.dll_GdipDeleteFont
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x5c]
jmp 0x41fd53
lea eax, [edi - 0x10]
mov byte [esp + 0x244], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420199
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x28]
jmp 0x4201a5
fstp st(0)
mov byte [esp + 0x244], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4201cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call sub.gdiplus.dll_GdipDeleteGraphics
push esi
call sub.gdiplus.dll_GdipDeleteFont
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x250]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420207
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004cf0b8
add esp, 0x234
ret 0x1c