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

Disassembly:
mov eax, 0x627235
call fcn.0044c384
sub esp, 0x90
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov eax, dword [eax + 0x194]
mov dword [ebp - 0x10], esp
test eax, eax
je 0x589e9d
mov eax, dword [eax]
jmp 0x589e9f
xor eax, eax
cmp byte [eax + 0x4a], 0
mov ebx, dword [ebp + 8]
je 0x589eb2
cmp byte [ebx + 0x1c], 0
je 0x58a5db
mov eax, dword [ebp + 0xc]
lea esi, [ebx + 0xac]
push esi
lea ecx, [ebp - 0x44]
lea edi, [eax + 0x34]
mov dword [ebp - 0x1c], edi
call fcn.005244de
cmp dword [eax], 0
setne al
cmp dword [ebp - 0x44], 0
movzx ax, al
mov word [ebp - 0x30], ax
je 0x589eea
push dword [ebp - 0x44]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
mov al, byte [ebx + 0x80]
push edi
push eax
lea ecx, [ebp - 0x6c]
call fcn.0058a5ea
lea ecx, [ebp - 0x6c]
call fcn.0058a62d
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x14], 0
mov eax, dword [eax + 0x194]
test eax, eax
je 0x589f17
mov eax, dword [eax]
jmp 0x589f19
xor eax, eax
cmp byte [eax + 4], 0
je 0x589f26
mov dword [ebp - 0x14], 8
cmp byte [ebx + 0x78], 0
je 0x589f30
or dword [ebp - 0x14], 4
mov al, byte [ebx + 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.0055825e
cmp word [ebx + 0x32], 0x21d
pop ecx
pop ecx
jne 0x58a179
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x194]
test eax, eax
je 0x589f5e
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
jmp 0x589f62
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call fcn.00410567
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
and dword [ebp - 4], 0
mov ax, word [eax + 0x4c]
push eax
call fcn.00554943
push eax
lea eax, [ebp - 0x44]
push dword [ebp - 0x2c]
push eax
call fcn.00553ac9
add esp, 0x10
cmp dword [ebp - 0x84], 0
mov byte [ebp - 4], 2
je 0x589fb0
push dword [ebp - 0x84]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
cmp dword [ebp - 0x44], 0
je 0x58a163
push esi
lea ecx, [ebp - 0x54]
call fcn.004f6f28
mov eax, dword [esi + 4]
mov dword [ebp - 0x50], eax
cmp word [ebp - 0x30], 0
mov byte [ebp - 4], 3
je 0x58a14a
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x28]
push eax
call fcn.005244de
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 4
call dword [eax + 0x18]
mov edi, eax
pop ecx
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x28]
push eax
call fcn.0058b88f
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 5
call dword [eax + 0x14]
push dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
call dword [eax + 0x28]
push dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
call dword [eax + 0x1c]
push dword [ebp - 0x28]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x24]
call dword [eax + 8]
add esp, 0x10
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x28]
push eax
call fcn.00524532
push edi
xor ecx, ecx
push dword [ebp - 0x2c]
mov byte [ebp - 4], 6
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x44]
push dword [ebp - 0x7c]
push dword [ebp - 0x3c]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.004f51fe
mov edi, eax
push edi
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0041c673
mov eax, dword [edi + 4]
cmp dword [ebp - 0x5c], 0
mov dword [esi + 4], eax
mov byte [ebp - 4], 6
je 0x58a096
push dword [ebp - 0x5c]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x68]
neg eax
sbb eax, eax
mov dword [ebp - 0x6c], vtable.CAGMVirtualImageClient.0
and eax, ecx
xor edi, edi
mov byte [ebp - 4], 5
mov eax, dword [eax]
cmp eax, edi
je 0x58a0bf
push eax
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
cmp dword [ebp - 0x38], edi
mov byte [ebp - 4], 4
je 0x58a0d4
push dword [ebp - 0x38]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
push dword [ebp - 0x54]
lea ecx, [ebp - 0x4c]
call fcn.0053785c
cmp dword [ebp - 0x48], edi
mov byte [ebp - 4], 8
je 0x58a117
push 1
push 8
call fcn.005a0894
pop ecx
mov dword [ebp - 0x3c], eax
pop ecx
cmp eax, edi
mov byte [ebp - 4], 9
je 0x58a10b
push dword [ebp - 0x48]
mov esi, dword [esi]
mov ecx, eax
push esi
call fcn.00577c63
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.00577ed9
mov dword [ebp - 0x4c], vtable.Resource_class_ImageXObject_.0
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 0xa
cmp ecx, edi
je 0x58a12e
call fcn.00577edd
cmp dword [ebp - 0x28], edi
mov dword [ebp - 0x4c], vtable.ASallocator.0
mov byte [ebp - 4], 3
je 0x58a14a
push dword [ebp - 0x28]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
cmp dword [ebp - 0x54], 0
mov byte [ebp - 4], 2
je 0x58a160
push dword [ebp - 0x54]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
mov edi, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x44], 0
je 0x58a179
push dword [ebp - 0x44]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
cmp word [ebp - 0x30], 0
je 0x58a18a
mov ecx, dword [ebp + 0xc]
call fcn.0055382b
jmp 0x58a1a0
push dword [ebp + 0xc]
call fcn.00559318
mov eax, dword [edi]
mov ecx, dword [edi + 4]
push eax
call dword [ecx + 0x90]
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x194]
test eax, eax
je 0x58a1b1
mov eax, dword [eax]
jmp 0x58a1b3
xor eax, eax
mov al, byte [eax + 4]
mov edx, dword [ebx]
push edi
push eax
push dword [ebp - 0x14]
mov ecx, ebx
call dword [edx]
cmp word [ebp - 0x30], 0
je 0x58a53e
mov ecx, dword [ebp + 0xc]
call fcn.005418af
test al, al
je 0x58a53e
mov eax, dword [edi]
mov ecx, dword [edi + 4]
push eax
call dword [ecx]
cmp eax, 5
pop ecx
jne 0x58a53e
mov eax, 0x60000
xor edx, edx
div dword [ebx + 0x18]
mov ecx, dword [ebx + 0x10]
imul ecx, dword [ebx + 0xc]
lea esi, [ecx + 7]
shr esi, 3
cmp esi, 1
mov dword [ebp - 0x14], eax
jbe 0x58a217
xor edx, edx
div esi
imul eax, esi
mov dword [ebp - 0x14], eax
cmp eax, ecx
ja 0x58a21e
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x6c]
add eax, 0x34
push eax
call fcn.00428103
mov ecx, dword [eax]
mov eax, dword [eax + 8]
push ecx
mov dword [ebp - 4], 0xb
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x6c], 0
pop ecx
mov dword [ebp - 0x3c], eax
je 0x58a257
push dword [ebp - 0x6c]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
push 6
lea eax, [ebp - 0x9c]
pop ecx
lea esi, [ebx + 0x84]
push dword [ebp - 0x3c]
lea edi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0050e69b
add esp, 0xc
mov esi, eax
lea edi, [ebp - 0x78]
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
cmp dword [ebp - 0x14], ecx
jae 0x58a4fe
fld dword [ebp - 0x78]
fcomp dword [0x62b67c]
fnstsw ax
sahf
jne 0x58a4fe
fld dword [ebp - 0x6c]
fcomp dword [0x62b67c]
fnstsw ax
sahf
jne 0x58a4fe
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x34], 0
mov dword [ebp - 0x38], eax
fild qword [ebp - 0x38]
and dword [ebp - 0x34], 0
mov dword [ebp - 0x38], ecx
fidiv dword [ebp - 0x38]
fcom qword [0x62d420]
fnstsw ax
sahf
ja 0x58a2e2
fstp st(0)
fld qword [0x62d420]
fst dword [ebp - 0x18]
fcomp dword [0x62b690]
fnstsw ax
sahf
jae 0x58a4fe
mov esi, dword [ebp + 8]
push esi
call fcn.00589ba1
mov ebx, eax
pop ecx
add esi, 0x9c
mov ecx, ebx
mov eax, dword [ebx]
push esi
mov dword [ebp - 0x2c], ebx
call dword [eax + 4]
lea edi, [ebx + 0x10]
mov byte [ebx + 0xc], 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 8]
mov dword [ebp - 4], 0xc
call fcn.005989f0
mov dword [ebp - 0x58], eax
mov ecx, dword [eax]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x60]
mov dword [eax], ecx
mov dword [ebp - 0x5c], 0x5989d1
fld dword [ebp - 0x94]
fcomp dword [0x62b67c]
mov byte [ebp - 4], 0xd
fnstsw ax
sahf
jb 0x58a41f
fld dword [ebp - 0x90]
fcomp dword [0x62b67c]
fnstsw ax
sahf
jb 0x58a41f
mov esi, dword [ebp - 0x1c]
fldz
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
fcomp dword [0x62b690]
fnstsw ax
sahf
jae 0x58a4ca
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push eax
call dword [ecx + 0x3c]
fld dword [ebp - 0x90]
fcomp dword [0x62b67c]
fld dword [ebp - 0x14]
fadd dword [ebp - 0x18]
pop ecx
fnstsw ax
fst dword [ebp - 0x20]
fld1
sahf
fcomp st(1)
fnstsw ax
jne 0x58a3d6
sahf
jae 0x58a3bc
fstp st(0)
fld1
mov ecx, dword [esi + 4]
mov eax, dword [esi]
fld1
push ecx
fstp dword [esp]
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
fld dword [ebp - 0x14]
jmp 0x58a3f5
sahf
jae 0x58a3dd
fstp st(0)
fld1
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push ecx
fstp dword [esp]
fld1
push ecx
fstp dword [esp]
fld dword [ebp - 0x14]
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
push eax
call dword [ecx + 0x64]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esp, 0x14
push eax
call dword [ecx + 0xc4]
pop ecx
push esi
call fcn.0052b475
mov eax, dword [ebp - 0x20]
pop ecx
mov dword [ebp - 0x14], eax
jmp 0x58a379
mov esi, dword [ebp - 0x1c]
fld1
fst dword [ebp - 0x14]
fcomp dword [0x62b67c]
fnstsw ax
sahf
jbe 0x58a4ca
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push eax
call dword [ecx + 0x3c]
fld dword [ebp - 0x90]
fcomp dword [0x62b67c]
fld dword [ebp - 0x14]
fsub dword [ebp - 0x18]
pop ecx
fnstsw ax
fst dword [ebp - 0x20]
fldz
sahf
fcomp st(1)
fnstsw ax
jne 0x58a481
sahf
jbe 0x58a467
fstp st(0)
fldz
mov ecx, dword [esi + 4]
mov eax, dword [esi]
fld1
push ecx
fstp dword [esp]
fld dword [ebp - 0x14]
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
jmp 0x58a4a0
sahf
jbe 0x58a488
fstp st(0)
fldz
mov ecx, dword [esi + 4]
mov eax, dword [esi]
fld dword [ebp - 0x14]
push ecx
fstp dword [esp]
fld1
push ecx
fstp dword [esp]
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
push eax
call dword [ecx + 0x64]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esp, 0x14
push eax
call dword [ecx + 0xc4]
pop ecx
push esi
call fcn.0052b475
fld dword [ebp - 0x20]
pop ecx
fst dword [ebp - 0x14]
jmp 0x58a427
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
jmp 0x58a4ee
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.0058b999
mov ebx, dword [ebp + 8]
jmp 0x58a579
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 4]
push dword [esi]
call dword [eax + 0x3c]
fld1
mov eax, dword [esi + 4]
fstp dword [esp]
fld1
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
push dword [esi]
call dword [eax + 0x64]
mov eax, dword [esi + 4]
push dword [esi]
call dword [eax + 0xc4]
push esi
call fcn.0052b475
add esp, 0x1c
jmp 0x58a57c
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax + 0x3c]
fld1
mov eax, dword [edi + 4]
fstp dword [esp]
fld1
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
push dword [edi]
call dword [eax + 0x64]
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax + 0xc4]
push edi
call fcn.0052b475
add esp, 0x1c
mov esi, dword [ebp - 0x1c]
cmp word [ebp - 0x30], 0
je 0x58a58d
mov ecx, dword [ebp + 0xc]
call fcn.00553a0f
jmp 0x58a599
mov eax, dword [esi + 4]
push dword [esi]
call dword [eax + 0x94]
pop ecx
push ebx
call fcn.00589ba1
test eax, eax
pop ecx
je 0x58a5db
mov esi, dword [eax + 0x20]
test esi, esi
jne 0x58a5b1
cmp byte [eax + 4], 0
je 0x58a5db
mov ecx, dword [ebp + 0xc]
call fcn.0054c7e3
mov eax, 0x400a0013
cmp esi, eax
jne 0x58a5c9
push eax
call fcn.00598a7e
pop ecx
test esi, esi
je 0x58a5db
push 0
push esi
push dword [ebp + 0xc]
call fcn.00540323
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret