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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x644bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x28], esi
call fcn.005ba920
test al, al
je 0x5900d4
mov ebx, dword [esi + 0x14]
mov eax, dword [ebx + 0x84]
lea eax, [eax + eax + 0x1d]
add ebx, 0x88
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 4]
mov edi, dword [eax]
mov dword [esp + 0x14], ebx
jmp 0x58f7a0
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x8c]
add eax, 0x88
cmp ebx, eax
mov dword [esp + 0x38], ecx
je 0x58f7bb
call fcn.0061c63f
cmp edi, dword [esp + 0x38]
je 0x58f960
cmp edi, dword [ebx + 4]
jne 0x58f7cf
call fcn.0061c63f
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 0x2c]
lea ebx, [eax + edx + 8]
mov eax, dword [edi + 0x38]
test eax, eax
je 0x58f7f9
mov ecx, dword [edi + 0x3c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
xor esi, esi
test eax, eax
mov dword [esp + 0x18], eax
jle 0x58f84e
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0x38]
test eax, eax
je 0x58f82a
mov ecx, dword [edi + 0x3c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x58f82f
call fcn.0061c63f
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x38]
mov edx, dword [eax + ecx + 0x14]
add esi, 1
add eax, 0x1c
cmp esi, dword [esp + 0x18]
lea ebx, [ebx + edx + 4]
mov dword [esp + 0x1c], eax
jl 0x58f807
mov eax, dword [edi + 0x48]
add ebx, 4
test eax, eax
jne 0x58f85e
mov dword [esp + 0x18], eax
jmp 0x58f87a
mov ecx, dword [edi + 0x4c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
xor esi, esi
cmp dword [esp + 0x18], esi
jle 0x58f8cd
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0x48]
test eax, eax
je 0x58f8a9
mov ecx, dword [edi + 0x4c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x58f8ae
call fcn.0061c63f
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x48]
mov edx, dword [eax + ecx + 0x14]
add esi, 1
add eax, 0x1c
cmp esi, dword [esp + 0x18]
lea ebx, [ebx + edx + 4]
mov dword [esp + 0x1c], eax
jl 0x58f886
mov eax, dword [edi + 0x58]
mov ecx, dword [eax]
lea esi, [edi + 0x54]
add ebx, 4
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], esi
test esi, esi
mov edx, dword [edi + 0x58]
lea eax, [edi + 0x54]
mov dword [esp + 0x24], edx
je 0x58f8f2
cmp esi, eax
je 0x58f8f7
call fcn.0061c63f
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x30], eax
je 0x58f935
test esi, esi
jne 0x58f90a
call fcn.0061c63f
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esi + 4]
jne 0x58f918
call fcn.0061c63f
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x30]
lea ecx, [eax + ebx]
lea esi, [esp + 0x2c]
lea ebx, [ecx + eax*4 + 0x25]
call fcn.0059eb80
mov esi, dword [esp + 0x2c]
jmp 0x58f8e0
mov edx, dword [edi + 0xa0]
mov ecx, dword [esp + 0x14]
cmp edi, dword [ecx + 4]
lea eax, [ebx + edx + 0x58]
mov dword [esp + 0x18], eax
jne 0x58f951
call fcn.0061c63f
mov edi, dword [edi]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
jmp 0x58f7a0
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xb4]
mov eax, dword [eax + 0xd0]
mov edx, dword [esp + 0x18]
add ecx, eax
xor edi, edi
lea ebx, [edx + ecx + 0x10]
mov dword [esp + 0x1c], edi
nop
mov eax, dword [esi + 0x20]
test eax, eax
je 0x58f99f
mov ecx, dword [esi + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jge 0x58f9e6
mov eax, dword [esi + 0x20]
test eax, eax
je 0x58f9c6
mov ecx, dword [esi + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x58f9cb
call fcn.0061c63f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x20]
mov edx, dword [eax + ecx + 0x14]
add edi, 1
add eax, 0x1c
lea ebx, [ebx + edx + 4]
mov dword [esp + 0x1c], eax
jmp 0x58f980
mov eax, dword [ebp + 0xc]
push eax
mov edi, str.ImageFontAscii:
lea esi, [esp + 0x4c]
add ebx, 0xa
call fcn.00445160
add esp, 4
mov edi, dword [ebp + 8]
push ebx
push eax
mov dword [esp + 0xb0], 0
call fcn.005baca0
mov esi, eax
mov dword [esp + 0xa8], 0xffffffff
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x3c], esi
jb 0x58fa38
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0061c19a
add esp, 4
test esi, esi
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
je 0x5900d4
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], esi
lea eax, [ebx + 4]
mov edi, 4
lea esi, [esp + 0x14]
call fcn.005baf90
lea eax, [ebx + 8]
call fcn.005baf90
lea eax, [ebx + 0xc]
call fcn.005baf90
lea eax, [ebx + 0x10]
call fcn.005baf90
mov eax, dword [ebx + 0x14]
add eax, 0x6c
mov edi, 1
call fcn.005baf90
mov eax, dword [ebx + 0x14]
add eax, 0x78
mov edi, 4
call fcn.005baf90
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + 0x84]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
call fcn.005baf90
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 0x80]
mov ecx, dword [ecx]
add eax, 0x7c
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x14]
mov esi, dword [esp + 0x20]
mov edi, dword [eax + 0x80]
add eax, 0x7c
test esi, esi
je 0x58faea
cmp esi, eax
je 0x58faef
call fcn.0061c63f
cmp dword [esp + 0x24], edi
je 0x58fb4e
test esi, esi
jne 0x58fafe
call fcn.0061c63f
mov edx, dword [esp + 0x24]
cmp edx, dword [esi + 4]
jne 0x58fb0c
call fcn.0061c63f
mov eax, dword [esp + 0x24]
add eax, 0xc
mov edi, 1
lea esi, [esp + 0x14]
call fcn.005baf90
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, dword [ecx + 4]
jne 0x58fb33
call fcn.0061c63f
mov eax, dword [esp + 0x24]
add eax, 0xd
lea esi, [esp + 0x14]
call fcn.005baf90
lea esi, [esp + 0x20]
call fcn.0059ec70
jmp 0x58fad2
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + 0x90]
mov dword [esp + 0x1c], eax
mov edi, 4
lea eax, [esp + 0x1c]
lea esi, [esp + 0x14]
call fcn.005baf90
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 0x8c]
mov ecx, dword [ecx]
add eax, 0x88
mov esi, eax
mov edi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
lea esp, [esp]
mov ebx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x8c]
add ebx, 0x88
test esi, esi
mov dword [esp + 0x44], ecx
je 0x58fbab
cmp esi, ebx
je 0x58fbb0
call fcn.0061c63f
cmp edi, dword [esp + 0x44]
je 0x58ff66
test esi, esi
jne 0x58fbc3
call fcn.0061c63f
cmp edi, dword [esi + 4]
jne 0x58fbcd
call fcn.0061c63f
lea ebx, [edi + 0x18]
lea eax, [esp + 0x14]
call fcn.005bafa0
mov eax, dword [edi + 0x38]
test eax, eax
jne 0x58fbe6
mov dword [esp + 0x18], eax
jmp 0x58fc02
mov ecx, dword [edi + 0x3c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
mov edi, 4
lea eax, [esp + 0x18]
lea esi, [esp + 0x14]
call fcn.005baf90
xor ebx, ebx
xor esi, esi
cmp dword [esp + 0x18], ebx
jle 0x58fc70
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x38]
test eax, eax
je 0x58fc49
mov ecx, dword [edi + 0x3c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x58fc4e
call fcn.0061c63f
mov ebx, dword [edi + 0x38]
add ebx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
call fcn.005bafa0
add dword [esp + 0x1c], 0x1c
add esi, 1
cmp esi, dword [esp + 0x18]
jl 0x58fc22
xor ebx, ebx
jmp 0x58fc74
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x48]
cmp eax, ebx
jne 0x58fc81
mov dword [esp + 0x18], ebx
jmp 0x58fc9d
mov edi, dword [edi + 0x4c]
sub edi, eax
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x18], ecx
mov edi, 4
lea eax, [esp + 0x18]
lea esi, [esp + 0x14]
call fcn.005baf90
xor esi, esi
cmp dword [esp + 0x18], ebx
jle 0x58fd07
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x48]
test eax, eax
je 0x58fce2
mov ecx, dword [edi + 0x4c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x58fce7
call fcn.0061c63f
mov ebx, dword [edi + 0x48]
add ebx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
call fcn.005bafa0
add dword [esp + 0x1c], 0x1c
add esi, 1
cmp esi, dword [esp + 0x18]
jl 0x58fcbb
jmp 0x58fd0b
mov edi, dword [esp + 0x24]
mov edx, dword [edi + 0x5c]
mov edi, 4
lea eax, [esp + 0x1c]
lea esi, [esp + 0x14]
mov dword [esp + 0x1c], edx
call fcn.005baf90
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x58]
mov esi, dword [eax]
add edi, 0x54
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
jmp 0x58fd40
mov eax, dword [esp + 0x24]
mov ebx, dword [eax + 0x58]
add eax, 0x54
test edi, edi
je 0x58fd52
cmp edi, eax
je 0x58fd57
call fcn.0061c63f
cmp esi, ebx
je 0x58fe82
test edi, edi
jne 0x58fd68
call fcn.0061c63f
cmp esi, dword [edi + 4]
jne 0x58fd72
call fcn.0061c63f
cmp esi, dword [edi + 4]
lea ecx, [esi + 0x10]
mov dword [esp + 0x1c], ecx
jne 0x58fd83
call fcn.0061c63f
lea eax, [esi + 0xc]
mov edi, 1
lea esi, [esp + 0x14]
call fcn.005baf90
mov ebx, dword [esp + 0x1c]
mov edi, 0x10
mov eax, ebx
call fcn.005baf90
lea eax, [ebx + 0x10]
mov edi, 8
call fcn.005baf90
mov edx, dword [ebx + 0x20]
mov edi, 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.005baf90
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
add ebx, 0x18
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x1c]
add eax, 0x18
test ebx, ebx
je 0x58fde8
cmp ebx, eax
je 0x58fded
call fcn.0061c63f
mov edi, dword [esp + 0x30]
cmp edi, esi
je 0x58fe4f
test ebx, ebx
jne 0x58fdfe
call fcn.0061c63f
cmp edi, dword [ebx + 4]
jne 0x58fe08
call fcn.0061c63f
mov eax, dword [esp + 0x30]
add eax, 0xc
mov edi, 1
lea esi, [esp + 0x14]
call fcn.005baf90
mov edx, dword [esp + 0x30]
cmp edx, dword [ebx + 4]
jne 0x58fe2b
call fcn.0061c63f
mov eax, dword [esp + 0x30]
add eax, 0x10
mov edi, 4
lea esi, [esp + 0x14]
call fcn.005baf90
lea esi, [esp + 0x2c]
call fcn.0055ba20
mov ebx, dword [esp + 0x2c]
jmp 0x58fdd6
mov ebx, dword [esp + 0x1c]
lea eax, [ebx + 0x24]
mov edi, 4
lea esi, [esp + 0x14]
call fcn.005baf90
lea eax, [ebx + 0x28]
call fcn.005baf90
lea esi, [esp + 0x34]
call fcn.0059eb80
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
jmp 0x58fd40
mov ebx, dword [esp + 0x24]
lea eax, [ebx + 0x60]
mov edi, 0x10
lea esi, [esp + 0x14]
call fcn.005baf90
lea eax, [ebx + 0x70]
call fcn.005baf90
add ebx, 0x8c
mov eax, esi
call fcn.005bafa0
mov ebx, dword [esp + 0x24]
lea eax, [ebx + 0xa8]
mov edi, 4
call fcn.005baf90
lea eax, [ebx + 0xac]
mov edi, 8
call fcn.005baf90
lea eax, [ebx + 0xb4]
mov edi, 4
call fcn.005baf90
lea eax, [ebx + 0xb8]
call fcn.005baf90
lea eax, [ebx + 0xbc]
call fcn.005baf90
lea eax, [ebx + 0xc0]
call fcn.005baf90
lea eax, [ebx + 0xc4]
call fcn.005baf90
lea eax, [ebx + 0xc8]
call fcn.005baf90
lea eax, [ebx + 0xcc]
call fcn.005baf90
lea eax, [ebx + 0xd0]
call fcn.005baf90
lea eax, [ebx + 0xd4]
call fcn.005baf90
lea eax, [ebx + 0xd8]
call fcn.005baf90
mov eax, dword [esp + 0x20]
cmp ebx, dword [eax + 4]
jne 0x58ff51
call fcn.0061c63f
mov ecx, dword [ebx]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov edi, ecx
jmp 0x58fb90
mov edx, dword [esp + 0x28]
mov ebx, dword [edx + 0x14]
add ebx, 0xa0
lea eax, [esp + 0x14]
call fcn.005bafa0
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x14]
add eax, 0xbc
push eax
lea esi, [esp + 0x68]
call fcn.005afc50
mov ebx, eax
add esp, 4
lea eax, [esp + 0x14]
call fcn.005bafa0
cmp dword [esp + 0x7c], 0x10
jb 0x58ffb4
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0061c19a
add esp, 4
lea eax, [edi + 0x18]
mov edi, 4
lea esi, [esp + 0x14]
call fcn.005baf90
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x58ffd6
mov dword [esp + 0x18], eax
jmp 0x58fff2
mov ecx, dword [ebx + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
lea esi, [esp + 0x14]
call fcn.005baf90
xor esi, esi
cmp dword [esp + 0x18], esi
jle 0x590056
xor edi, edi
lea esp, [esp]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x590033
mov ecx, dword [ebx + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x590038
call fcn.0061c63f
mov ebx, dword [ebx + 0x20]
add ebx, edi
lea eax, [esp + 0x14]
call fcn.005bafa0
mov ebx, dword [esp + 0x28]
add esi, 1
add edi, 0x1c
cmp esi, dword [esp + 0x18]
jl 0x590010
lea eax, [ebx + 0x40]
mov edi, 8
lea esi, [esp + 0x14]
call fcn.005baf90
lea eax, [ebx + 0x48]
mov edi, 1
call fcn.005baf90
lea eax, [ebx + 0x2c]
call fcn.005baf90
mov esi, dword [esp + 0x3c]
push esi
call fcn.005baef0
push esi
call fcn.005bae00
mov ecx, dword [ebp + 0xc]
push ecx
mov edi, str.ImageFont2:
lea esi, [esp + 0x84]
call fcn.00445160
add esp, 4
push eax
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [esp + 0xac], 1
call fcn.005bac30
cmp dword [esp + 0x98], 0x10
jb 0x5900d4
mov edx, dword [esp + 0x84]
push edx
call fcn.0061c19a
add esp, 4
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8