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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44ca90
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x45e200]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x45e200]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
cmp dword [edi + 0x7c], 0
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], eax
mov dword [edi + 0x64], 0
je 0x41ca85
mov esi, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], eax
test esi, esi
jbe 0x41ca85
test eax, eax
jbe 0x41ca85
mov edx, dword [edi]
mov eax, dword [edx + 0x48]
call eax
cmp dword [edi + 0xe4], 1
mov ebx, eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
jne 0x41c8be
cmp dword [edi + 0xf8], 0
je 0x41c6b6
mov esi, 0xff
cmp dword [edi + 0xe8], esi
jbe 0x41c644
mov dword [edi + 0xe8], esi
cmp dword [edi + 0xec], 0
jg 0x41c657
mov dword [edi + 0xec], 0
mov esi, ebx
sub esi, edx
push esi
sub ecx, eax
push ecx
push edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [edi + 0xe8]
mov dword [esp + 0x20], esi
push ecx
lea esi, [edi + 8]
call fcn.004116c0
mov eax, dword [edi + 0xec]
test eax, eax
jle 0x41c6aa
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push ecx
push edx
lea esi, [edi + 0xa4]
call fcn.004116c0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
cmp dword [edi + 0x13c], 0
je 0x41c8b4
sub ebx, edx
push ebx
sub ecx, eax
push ecx
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
lea esi, [edi + 0x1f0]
call fcn.00411620
mov esi, dword [edi + 0x184]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
imul ecx, dword [edi + 0x198]
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [edi + 0x188]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, esi
cdq
sub eax, edx
mov edx, dword [edi + 0x194]
sar eax, 1
push eax
mov eax, dword [edi + 0x190]
mov dword [esp + 0x14], ecx
lea ecx, [edi + 0x190]
push 0
push edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
push eax
lea ebx, [edi + 0x15c]
mov edi, dword [esp + 0x20]
push ecx
call fcn.00411770
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x184]
mov ecx, dword [esp + 0x18]
mov edi, dword [esi + 0x188]
push edx
cdq
sub eax, edx
mov edx, dword [ecx]
sar eax, 1
push eax
mov eax, dword [esi + 0x194]
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.00411770
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x194]
mov eax, dword [esi + 0x188]
fild dword [ecx]
mov edi, dword [esi + 0x184]
mov esi, dword [esi + 0xfc]
lea eax, [edx + eax + 5]
fstp dword [esp + 0x18]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x1c]
fild dword [esp + 0x10]
mov ecx, esi
fstp dword [esp + 0x10]
call eax
add eax, 5
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
test eax, eax
jge 0x41c7c9
fadd dword [0x456808]
fstp dword [esp + 0x1c]
mov eax, edi
fld dword [esp + 0x18]
cdq
fstp dword [esp + 0x3c]
sub eax, edx
fld dword [esp + 0x10]
sar eax, 1
fstp dword [esp + 0x40]
mov dword [esp + 0x10], eax
lea esi, [esp + 0x20]
fild dword [esp + 0x10]
fstp dword [esp + 0x44]
fld dword [esp + 0x1c]
fstp dword [esp + 0x48]
call fcn.0041ade0
xor edi, edi
mov dword [esp + 0x78], edi
xor ecx, ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], cx
mov byte [esp + 0x78], 1
mov esi, dword [esp + 0x30]
cmp dword [esi + 0x138], 0x10
jb 0x41c834
mov ebx, dword [esi + 0x124]
jmp 0x41c83a
lea ebx, [esi + 0x124]
lea edx, [esp + 0x4c]
push edx
call fcn.004248a0
mov eax, dword [esp + 0x24]
add esp, 4
push edi
push eax
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, edi
je 0x41c85a
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
push 1
push ecx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, edi
je 0x41c86e
mov dword [esp + 0x24], eax
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x41c87d
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x60]
mov esi, dword [esi + 0xfc]
mov edi, dword [esi + 4]
lea edx, [esp + 0x3c]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
call fcn.0041ad10
lea esi, [esp + 0x4c]
call fcn.004095a0
mov edx, dword [esp + 0x20]
push edx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov eax, 1
jmp 0x41ca87
cmp dword [edi + 0xd8], 0
jne 0x41c8e8
mov ecx, dword [esp + 0x10]
push ecx
push esi
push edx
mov edx, dword [esp + 0x20]
push eax
push edx
lea esi, [edi + 8]
call fcn.00411620
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp dword [edi + 0xd8], 1
jne 0x41c977
cmp eax, ecx
mov dword [esp + 0x1c], eax
jge 0x41c977
lea ecx, [ecx]
mov eax, ecx
sub eax, dword [esp + 0x1c]
mov esi, edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
cmp edx, eax
ja 0x41c918
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
cmp edx, ebx
jge 0x41c963
mov ecx, dword [esp + 0x10]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x30], eax
cmp ecx, eax
ja 0x41c934
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push eax
push ecx
push esi
push edx
lea eax, [edi + 8]
push eax
mov eax, dword [esp + 0x34]
call fcn.00411400
add esi, dword [esp + 0x30]
cmp esi, ebx
jl 0x41c920
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
add esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
cmp esi, ecx
mov dword [esp + 0x1c], esi
jl 0x41c900
cmp dword [edi + 0xd8], 2
jne 0x41c9a4
sub ebx, edx
push ebx
mov ebx, dword [esp + 0x18]
sub ecx, eax
push ecx
push edx
push eax
lea esi, [edi + 8]
call fcn.004115a0
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp dword [edi + 0xd8], 3
jne 0x41c9c4
push 1
sub ebx, edx
push ebx
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
lea edx, [edi + 8]
push edx
call fcn.00411400
cmp dword [edi + 0xe0], 0
je 0x41ca7e
movzx eax, byte [edi + 0xdc]
fld1
movzx ecx, byte [edi + 0xdd]
movzx edx, byte [edi + 0xde]
or eax, 0xfffffe00
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
mov dword [esp + 0x38], eax
push ecx
lea eax, [esp + 0x3c]
lea esi, [esp + 0x34]
fstp dword [esp]
call fcn.00410040
mov edx, dword [edi + 0x68]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x70]
push edx
mov edx, esi
mov esi, dword [esp + 0x18]
push edx
sub ecx, 3
mov edx, eax
call fcn.00410000
mov ecx, dword [edi + 0x68]
mov eax, dword [edi + 0x74]
push ecx
lea edx, [esp + 0x34]
push edx
mov edx, dword [edi + 0x6c]
sub eax, 3
call fcn.00410000
mov edx, dword [edi + 0x68]
mov eax, dword [edi + 0x74]
mov ecx, dword [edi + 0x70]
inc edx
push edx
lea edx, [esp + 0x34]
dec eax
push edx
sub ecx, 3
mov edx, eax
call fcn.00410000
mov eax, dword [edi + 0x70]
mov edx, dword [edi + 0x6c]
lea ecx, [eax - 1]
mov eax, dword [edi + 0x74]
push ecx
lea edi, [esp + 0x34]
sub eax, 3
inc edx
push edi
call fcn.00410000
mov eax, dword [esp + 0x30]
push eax
call sub.gdiplus.dll_GdipDeletePen
mov eax, 1
jmp 0x41ca87
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0043270e
mov esp, ebp
pop ebp
ret 4