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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e4959
push eax
mov eax, 0x16c0
mov dword fs:[0], esp
call fcn.005301e0
mov eax, dword [ebp + 0x20]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ebx, ebx
mov dword [esp + 0xb0], eax
push ebx
call dword [sym.imp.USER32.dll_GetDC]
add esi, 0x1340
mov edi, eax
push esi
mov dword [esp + 0x68], edi
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
push edi
mov dword [esp + 0x8c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0xec]
mov dword [esp + 0x80], eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [ebp + 0x10]
mov eax, 1
mov word [esp + 0xa2], ax
mov word [esp + 0xae], ax
mov eax, dword [ebp + 0x20]
xor esi, esi
lea ecx, [esp + 0xa0]
mov word [esp + 0xa0], bx
mov si, word [eax + edx*2]
push ecx
push ebx
lea edx, [esp + 0xc4]
push ebx
push edx
push 3
mov word [esp + 0xba], bx
mov word [esp + 0xb8], bx
mov word [esp + 0xbe], bx
mov word [esp + 0xbc], bx
mov word [esp + 0xc0], bx
mov ebx, dword [sym.imp.GDI32.dll_GetGlyphOutlineW]
push esi
push edi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x581015
cmp esi, 0x20
jne 0x580fd4
mov eax, dword [esp + 0x48]
fld qword [eax + 0x1484]
fmul qword [0x5e7c18]
mov eax, dword [ebp + 0x1c]
fadd qword [eax]
fstp qword [eax]
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x64]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x84]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x16cc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push edi
call fcn.005b449a
add esp, 4
lea ecx, [esp + 0xa0]
lea edx, [esp + 0xbc]
mov dword [esp + 0x60], eax
push ecx
push eax
mov eax, dword [esp + 0x6c]
push edi
push edx
push 3
push esi
push eax
call ebx
mov ecx, dword [esp + 0xec]
mov ebx, dword [esp + 0xf8]
mov esi, eax
mov edx, dword [esp + 0x48]
movsx eax, word [esp + 0xcc]
sub ecx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0xbc]
fild dword [esp + 0x50]
fild dword [esp + 0xc]
cmp ecx, eax
fmul qword [edx + 0x1484]
fdiv st(1)
fstp qword [esp + 0x58]
jb 0x5810aa
mov eax, dword [esp + 0xc4]
add eax, ecx
xor edi, edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edi
fild qword [esp + 0x58]
fmul qword [edx + 0x1484]
fdiv st(1)
fstp qword [esp + 0x58]
fstp st(0)
jmp 0x5810ae
fstp st(0)
xor edi, edi
mov ebx, dword [esp + 0x60]
lea ecx, [esp + 0x128]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x2710
call fcn.00544b10
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x16d4], edi
mov edx, dword [ecx + 0x80c]
lea ecx, [esp + 0x128]
push edx
call fcn.00593200
mov eax, dword [esp + 0xec]
mov edx, dword [esp + 0xf8]
mov ecx, eax
sub ecx, edx
mov edx, ebx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x48]
fild dword [esp + 0xc]
add esi, edx
cmp edx, esi
mov dword [esp + 0x54], esi
fdivr qword [ecx + 0x1484]
fst qword [esp + 0x68]
fstp qword [esp + 0x70]
jae 0x5816f2
push 0x944
call fcn.005b449a
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov byte [esp + 0x16d4], 1
je 0x581160
mov ecx, eax
call fcn.0055f180
mov esi, eax
mov dword [esp + 0x4c], esi
jmp 0x581166
mov dword [esp + 0x4c], edi
mov esi, edi
mov eax, dword [esp + 0x48]
mov edx, dword [esi]
mov byte [esp + 0x16d4], 0
mov ecx, dword [eax + 0x80c]
push ecx
mov ecx, esi
call dword [edx + 0x40]
push esi
lea ecx, [esp + 0x12c]
call fcn.005476f0
mov eax, dword [ebx + 8]
push 0x1c
mov dword [esp + 0x2c], eax
and eax, 0xffff
movsx edx, word [esp + 0x2e]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], eax
and eax, 0xffff
fmul qword [0x5fa578]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
movsx eax, word [esp + 0x2e]
faddp st(1)
fmul qword [esp + 0x6c]
fstp qword [esp + 0x30]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fmul qword [0x5fa578]
fild dword [esp + 0x10]
faddp st(1)
fmul qword [esp + 0x74]
fstp qword [esp + 0x38]
call fcn.005b449a
add esp, 4
cmp eax, edi
je 0x58122f
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
jmp 0x581231
xor eax, eax
push eax
mov ecx, esi
call fcn.00565880
mov edx, dword [ebx]
lea esi, [ebx + 0x10]
add edx, ebx
mov dword [esp + 0x28], esi
cmp esi, edx
jae 0x581625
jmp 0x581252
mov esi, dword [esp + 0x28]
mov ax, word [esi]
xor ecx, ecx
mov cx, word [esi + 2]
cmp ax, 1
mov dword [esp + 0xc], ecx
jne 0x581332
cmp ecx, edi
jbe 0x581611
add esi, 8
mov ebx, ecx
mov eax, dword [esi - 4]
push 0x1c
mov dword [esp + 0x14], eax
and eax, 0xffff
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
movsx eax, word [esp + 0x16]
fmul qword [0x5fa578]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
fild dword [esp + 0x14]
mov dword [esp + 0x28], eax
and eax, 0xffff
movsx ecx, word [esp + 0x2a]
faddp st(1)
mov dword [esp + 0x14], eax
fmul qword [esp + 0x6c]
fstp qword [esp + 0x30]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fmul qword [0x5fa578]
fild dword [esp + 0x14]
faddp st(1)
fmul qword [esp + 0x74]
fstp qword [esp + 0x38]
call fcn.005b449a
add esp, 4
cmp eax, edi
je 0x581317
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
jmp 0x581319
xor eax, eax
mov ecx, dword [esp + 0x4c]
push eax
call fcn.00565880
add esi, 8
dec ebx
jne 0x581276
jmp 0x581605
cmp ax, 3
jne 0x581611
lea esi, [ecx + 1]
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
call fcn.005b449a
add esp, 4
cmp eax, edi
je 0x581385
lea edx, [esi - 1]
cmp edx, edi
jl 0x581381
lea ecx, [eax + 0x10]
inc edx
mov dword [ecx - 0x10], edi
mov dword [ecx - 8], edi
mov dword [ecx], edi
mov dword [ecx - 0xc], edi
mov dword [ecx - 4], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], 0x2710
add ecx, 0x1c
dec edx
jne 0x581363
mov ebx, eax
jmp 0x581387
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0xc]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x10], edx
cmp esi, edi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], ecx
jbe 0x5815fc
mov edx, dword [esp + 0x28]
lea eax, [ebx + 0x2c]
add edx, 8
mov ecx, dword [edx - 4]
add eax, 0x1c
mov dword [esp + 0x24], ecx
and ecx, 0xffff
mov dword [esp + 0x10], ecx
add edx, 8
fild dword [esp + 0x10]
movsx ecx, word [esp + 0x26]
fmul qword [0x5fa578]
mov dword [esp + 0x10], ecx
mov ecx, dword [edx - 8]
fild dword [esp + 0x10]
mov dword [esp + 0x24], ecx
and ecx, 0xffff
mov dword [esp + 0x10], ecx
dec esi
faddp st(1)
movsx ecx, word [esp + 0x26]
fmul qword [esp + 0x68]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul qword [0x5fa578]
fild dword [esp + 0x10]
faddp st(1)
fmul qword [esp + 0x70]
fstp qword [esp + 0x34]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
fstp qword [eax - 0x2c]
mov dword [eax - 0x24], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax - 0x20], edi
mov edi, dword [esp + 0x40]
mov dword [eax - 0x1c], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax - 0x18], edi
mov dword [eax - 0x14], ecx
jne 0x5813cd
mov edx, dword [esp + 0xc]
mov eax, 0xaaaaaaab
add edx, 2
lea esi, [ebx + 0x64]
mul edx
mov edi, edx
shr edi, 1
mov dword [esp + 0x18], 0x9999999a
mov dword [esp + 0x1c], 0x3fb99999
fld qword [0x5e7c10]
fsub qword [esp + 0x18]
fld qword [esp + 0x18]
fmul qword [esi - 0x48]
push 0x1c
fmul qword [0x5e8c40]
fld st(1)
fmul qword [esi - 0x64]
faddp st(1)
fmul st(1)
fld qword [esp + 0x1c]
fmul qword [esi - 0x2c]
fmul qword [esp + 0x1c]
fmul qword [0x5e8c40]
faddp st(1)
fmul st(1)
fld qword [esp + 0x1c]
fmul qword [esi - 0x10]
fmul qword [esp + 0x1c]
fmul qword [esp + 0x1c]
faddp st(1)
fstp qword [esp + 0x30]
fld st(0)
fmul qword [esi - 0x5c]
fld qword [esp + 0x1c]
fmul qword [esi - 0x40]
fmul qword [0x5e8c40]
faddp st(1)
fmul st(1)
fld qword [esp + 0x1c]
fmul qword [esi - 0x24]
fmul qword [esp + 0x1c]
fmul qword [0x5e8c40]
faddp st(1)
fmul st(1)
fld qword [esp + 0x1c]
fmul qword [esp + 0x1c]
fmul qword [esp + 0x1c]
fmul qword [esi - 8]
faddp st(1)
fstp qword [esp + 0x38]
fstp st(0)
call fcn.005b449a
add esp, 4
test eax, eax
je 0x581551
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
jmp 0x581553
xor eax, eax
mov ecx, dword [esp + 0x4c]
push eax
call fcn.00565880
fld qword [esp + 0x18]
fadd qword [0x5e8c50]
fst qword [esp + 0x18]
fcomp qword [str.ffffff]
fnstsw ax
test ah, 1
jne 0x581485
push 0x1c
call fcn.005b449a
add esp, 4
test eax, eax
je 0x5815b4
mov edx, dword [esi - 0x10]
mov dword [eax], edx
mov ecx, dword [esi - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [esi - 8]
mov dword [eax + 8], edx
mov ecx, dword [esi - 4]
mov dword [eax + 0xc], ecx
mov edx, dword [esi]
mov dword [eax + 0x10], edx
mov ecx, dword [esi + 4]
mov dword [eax + 0x14], ecx
mov edx, dword [esi + 8]
mov dword [eax + 0x18], edx
jmp 0x5815b6
xor eax, eax
mov ecx, dword [esp + 0x4c]
push eax
call fcn.00565880
mov eax, dword [esi - 0x10]
mov ecx, dword [esi - 0xc]
mov edx, dword [esi - 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esi - 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 8]
add esi, 0x54
dec edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
jne 0x581475
xor edi, edi
push ebx
call fcn.005b44c3
add esp, 4
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x28]
lea eax, [esi + ecx*8 + 4]
mov ecx, dword [ebx]
add ecx, ebx
mov dword [esp + 0x28], eax
cmp eax, ecx
jb 0x58124e
mov eax, dword [ebx + 8]
push 0x1c
mov dword [esp + 0x28], eax
and eax, 0xffff
movsx edx, word [esp + 0x2a]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], eax
and eax, 0xffff
fmul qword [0x5fa578]
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
movsx eax, word [esp + 0x2a]
faddp st(1)
fmul qword [esp + 0x6c]
fstp qword [esp + 0x30]
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fmul qword [0x5fa578]
fild dword [esp + 0x14]
faddp st(1)
fmul qword [esp + 0x74]
fstp qword [esp + 0x38]
call fcn.005b449a
add esp, 4
cmp eax, edi
je 0x5816c7
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
jmp 0x5816c9
xor eax, eax
mov ecx, dword [esp + 0x4c]
push eax
call fcn.00565880
mov ecx, dword [ebx]
mov eax, dword [esp + 0x54]
add ebx, ecx
cmp ebx, eax
mov dword [esp + 0x50], ebx
jb 0x581134
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0x48]
fild dword [ebp + 0x24]
mov edx, dword [esp + 0xf8]
mov dword [esp + 0x88], 0
sub eax, edx
lea edx, [esp + 0x88]
fstp qword [esp + 0x10]
fild dword [esp + 0xf4]
mov dword [esp + 0x54], eax
push edx
mov dword [esp + 0x90], 0
fmul qword [ecx + 0x1484]
fild dword [esp + 0x58]
fdivp st(1)
fld qword [ecx + 0x13ac]
fadd qword [ecx + 0x1484]
lea ecx, [esp + 0x12c]
fmul qword [esp + 0x14]
fsubp st(1)
fstp qword [esp + 0x94]
call fcn.00545f60
mov eax, dword [esp + 0xb0]
mov esi, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x48]
cmp eax, 1
jbe 0x581953
mov eax, dword [ebx + 0x139c]
sub eax, edi
je 0x581916
dec eax
jne 0x581953
mov eax, dword [ebx + 0x13a4]
mov dword [esp + 0x1c], edi
fld qword [ebx + 0x1484]
fmul qword [0x5e7c48]
mov dword [esp + 0x18], eax
fild qword [esp + 0x18]
fmulp st(1)
fld qword [esp + 0x10]
fmul qword [ebx + 0x1484]
fsubp st(1)
fst qword [esp + 0x18]
fcomp qword [0x5e80d8]
fnstsw ax
test ah, 0x40
je 0x5817d7
mov dword [esp + 0x2c], 0x54442d18
mov dword [esp + 0x30], 0x401921fb
jmp 0x5817e2
fld qword [ebp + 0x14]
fdiv qword [esp + 0x18]
fstp qword [esp + 0x2c]
mov eax, dword [ebx + 0x13b4]
mov dword [esp + 0x68], 0
cmp eax, edi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
jne 0x581837
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
inc edx
push ecx
push edx
mov ecx, ebx
call fcn.00581b80
fmul qword [esp + 0x2c]
fdiv qword [ebp + 0x14]
fchs
jmp 0x581888
cmp eax, 2
jne 0x581859
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x20]
inc ecx
push eax
push ecx
mov ecx, ebx
call fcn.00581b80
fmul qword [esp + 0x2c]
fdiv qword [ebp + 0x14]
fsubr qword [esp + 0x2c]
jmp 0x581888
fld qword [esp + 0x2c]
fmul qword [0x5e7c18]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x20]
inc eax
push edx
push eax
mov ecx, ebx
fstp qword [esp + 0xb8]
call fcn.00581b80
fmul qword [esp + 0x2c]
fdiv qword [ebp + 0x14]
fsubr qword [esp + 0xb0]
fstp qword [esp + 0x68]
fld qword [ebx + 0x1484]
fmul qword [0x5e7c18]
fld qword [esp + 0x58]
fmul qword [0x5e7c18]
lea ecx, [esp + 0x68]
lea edx, [esp + 0xd0]
push ecx
push edx
lea ecx, [esp + 0x130]
mov dword [esp + 0xe8], 0
fstp qword [esp + 0xd8]
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], edi
fstp qword [esp + 0xe0]
call fcn.00546040
fld qword [esp + 0x58]
fmul qword [0x5ea7f0]
fld qword [esp + 0x68]
fsin
fmul qword [esp + 0x18]
fsubp st(1)
fstp qword [esp + 0x88]
fld qword [esp + 0x68]
fcos
fmul qword [esp + 0x18]
fstp qword [esp + 0x90]
jmp 0x58193f
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea eax, [esp + 0x88]
lea ecx, [esp + 0x128]
push eax
call fcn.00545f60
fld qword [esp + 0x58]
fadd qword [esi]
push edi
lea ecx, [esp + 0x12c]
fst qword [esi]
fld qword [ebx + 0x1484]
fmul qword [0x5e7c48]
fimul dword [ebx + 0x13a0]
fadd st(1)
fstp qword [esi]
fstp st(0)
call fcn.00547260
mov esi, eax
cmp esi, edi
je 0x5819be
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test ebx, ebx
jne 0x58199c
mov ecx, dword [esi]
push ecx
mov ecx, edi
call fcn.005476f0
jmp 0x5819a7
mov edx, dword [esi]
mov ecx, edi
push edx
push ebx
call fcn.005477e0
push 0
push esi
lea ecx, [esp + 0x130]
call fcn.00547400
mov esi, eax
test esi, esi
jne 0x58198c
xor edi, edi
push edi
lea ecx, [esp + 0x12c]
call fcn.00548150
mov eax, dword [esp + 0x60]
push eax
call fcn.005b44c3
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x68]
add esp, 4
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x84]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x128]
mov dword [esp + 0x16d4], 0xffffffff
call fcn.005457f0
mov ecx, dword [esp + 0x16cc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x20