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

Disassembly:
sub esp, 0x598
push ebx
push ebp
push esi
push edi
push 0x6e18f8
push str.Decoding__s_image
lea eax, [esp + 0x3a8]
mov word [esp + 0x3a8], 0
call fcn.00483050
mov ecx, dword [esp + 0x5b8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
add esp, 8
push 0
lea edx, [esp + 0x3a4]
push edx
call eax
mov edi, dword [esp + 0x5b4]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.005b55f0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x57f90b
mov ecx, dword [esp + 0x5ac]
mov dword [ecx], eax
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x598
ret 0xc
mov al, byte [esp + 0x2d]
cmp al, 1
je 0x57f925
cmp al, 5
ja 0x57f925
mov bl, byte [esp + 0x2f]
cmp bl, 1
je 0x57f93f
cmp bl, 8
je 0x57f948
mov eax, dword [esp + 0x5ac]
mov dword [eax], 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x598
ret 0xc
cmp byte [esp + 0x3c], 1
je 0x57f956
jmp 0x57f925
cmp byte [esp + 0x3c], 1
je 0x57f956
cmp byte [esp + 0x3c], 3
jne 0x57f925
mov dx, word [esp + 0x30]
mov si, word [esp + 0x34]
cmp dx, si
ja 0x57f925
mov ax, word [esp + 0x32]
mov cx, word [esp + 0x36]
cmp ax, cx
ja 0x57f925
movzx esi, si
movzx edx, dx
movzx ebp, cx
movzx eax, ax
sub esi, edx
sub ebp, eax
add esi, 1
add ebp, 1
cmp bl, 1
mov dword [esp + 0x40], esi
mov dword [esp + 0x5c], ebp
jne 0x57f9b1
movzx ecx, word [esp + 0x3d]
lea eax, [esi + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp ecx, eax
jge 0x57f9c3
jmp 0x57f925
cmp bl, 8
jne 0x57f9c3
movzx edx, word [esp + 0x3d]
cmp edx, esi
jl 0x57f925
push ebp
lea eax, [esp + 0x64]
push eax
mov ecx, esi
mov eax, 1
call fcn.004d3de0
fnstcw word [esp + 0x16]
mov cx, word [esp + 0x38]
movzx eax, word [esp + 0x16]
movzx esi, cx
mov dword [esp + 0x18], esi
or eax, 0xc00
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
fld qword [0x723de8]
fmul st(1), st(0)
fldcw word [esp + 0x18]
fxch st(1)
fistp qword [esp + 0x48]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x74], edx
mov dx, word [esp + 0x3a]
fldcw word [esp + 0x16]
movzx edi, dx
mov dword [esp + 0x18], edi
fimul dword [esp + 0x18]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or eax, 0xc00
test cx, cx
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x48]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x78], eax
fldcw word [esp + 0x16]
jbe 0x57fa6a
test dx, dx
jbe 0x57fa6a
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x18]
lea esi, [esp + 0x60]
mov dword [esp + 0x18], edi
call fcn.004d0cb0
mov esi, dword [esp + 0x5b4]
mov edi, dword [esi + 4]
push 0
push 0
push 0
lea eax, [esp + 0x6c]
call fcn.004d0d70
mov ecx, dword [esi + 4]
call fcn.004d14f0
test eax, eax
mov dword [esp + 0x24], eax
je 0x57f925
mov edi, dword [esp + 0x5b0]
fldz
mov edx, dword [edi]
fst qword [esp + 0x48]
mov eax, dword [edx + 0x24]
sub esp, 8
mov ecx, edi
fstp qword [esp]
call eax
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
test al, al
je 0x57fad9
mov eax, dword [esp + 0x5ac]
mov dword [eax], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x598
ret 0xc
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x44]
xor edi, edi
xor bl, bl
xor esi, esi
cmp ebp, edi
mov dword [esp + 0x18], edx
mov byte [esp + 0x16], bl
mov dword [esp + 0x50], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
jle 0x57fc79
test esi, esi
jne 0x57fb62
jmp 0x57fb10
mov eax, dword [esp + 0x5b4]
mov esi, dword [eax]
add esi, 0x10
mov ecx, 1
lea eax, [esp + 0x16]
call fcn.00499800
movzx ebx, byte [esp + 0x16]
cmp bl, 0xc0
jb 0x57fbb3
cmp byte [esp + 0x2e], 0
je 0x57fbb3
mov ecx, dword [esp + 0x5b4]
mov ecx, dword [ecx]
and ebx, 0x3f
lea eax, [esp + 0x16]
mov esi, ebx
call fcn.005b25e0
test al, al
je 0x57f925
test esi, esi
je 0x57fb10
mov bl, byte [esp + 0x16]
cmp edi, dword [esp + 0x40]
jge 0x57fbc8
cmp byte [esp + 0x2f], 1
mov edx, dword [esp + 0x24]
jne 0x57fbba
lea eax, [edx + edi*2]
mov dword [esp + 0x44], 7
lea edx, [edi + eax + 1]
cmp edi, dword [esp + 0x40]
jge 0x57fbc8
mov cl, byte [esp + 0x44]
mov al, bl
shr al, cl
and al, 1
sub al, 1
neg al
sbb al, al
and al, 1
add al, 0xff
mov byte [edx + 1], al
mov byte [edx], al
mov byte [edx - 1], al
add edi, 1
add edx, 3
sub dword [esp + 0x44], 1
jns 0x57fb82
jmp 0x57fbc8
mov esi, 1
jmp 0x57fb62
lea ecx, [edi + edi*2]
sub ecx, dword [esp + 0x20]
add edi, 1
mov byte [ecx + edx + 2], bl
mov eax, dword [esp + 0x50]
movzx ecx, word [esp + 0x3d]
add eax, 1
sub esi, 1
cmp eax, ecx
mov dword [esp + 0x50], eax
jne 0x57fc6f
mov eax, dword [esp + 0x20]
movzx edx, byte [esp + 0x3c]
add eax, 1
cmp eax, edx
mov dword [esp + 0x20], eax
jne 0x57fc69
mov eax, dword [esp + 0x18]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, ebp
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], eax
jne 0x57fc1e
test esi, esi
jne 0x57f925
fild dword [esp + 0x28]
fidiv dword [esp + 0x5c]
fst qword [esp + 0x50]
fsub qword [esp + 0x48]
fcomp qword [0x723630]
fnstsw ax
test ah, 1
jne 0x57fc69
mov edi, dword [esp + 0x5b0]
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
test al, al
jne 0x57fabf
fld qword [esp + 0x50]
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
fst qword [esp + 0x48]
sub esp, 8
mov ecx, edi
fstp qword [esp]
call eax
xor edi, edi
mov dword [esp + 0x50], edi
cmp dword [esp + 0x28], ebp
jl 0x57fb01
mov al, byte [esp + 0x3c]
cmp al, 1
jne 0x57fd38
cmp byte [esp + 0x2f], 8
jne 0x57fd40
mov ebx, dword [esp + 0x5b4]
mov ecx, dword [ebx]
lea eax, [esp + 0x16]
mov byte [esp + 0x16], 0
call fcn.005b25e0
cmp byte [esp + 0x16], 0xc
jne 0x57f925
push 0x300
lea ecx, [esp + 0xa4]
push 0
push ecx
call fcn.006a1300
mov esi, dword [ebx]
add esp, 0xc
add esi, 0x10
mov ecx, 0x300
lea eax, [esp + 0xa0]
call fcn.00499800
mov ecx, dword [ebx + 4]
call fcn.004d14f0
test ebp, ebp
mov edi, eax
jle 0x57fd52
lea ecx, [ecx]
mov esi, dword [esp + 0x40]
test esi, esi
jle 0x57fd2d
lea ecx, [edi + 2]
jmp 0x57fd00
movzx edx, byte [ecx]
lea edx, [edx + edx*2]
movzx eax, byte [esp + edx + 0xa0]
mov byte [ecx], al
movzx eax, byte [esp + edx + 0xa1]
mov dl, byte [esp + edx + 0xa2]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
add ecx, 3
sub esi, 1
jne 0x57fd00
add edi, dword [esp + 0x18]
sub ebp, 1
jne 0x57fcf0
jmp 0x57fd52
test al, al
je 0x57f925
cmp byte [esp + 0x2f], 0
je 0x57f925
mov ebx, dword [esp + 0x5b4]
movzx eax, byte [esp + 0x3c]
movzx ecx, byte [esp + 0x2f]
imul eax, ecx
pop edi
pop esi
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x5a4]
pop ebp
mov dword [eax], 0
pop ebx
add esp, 0x598
ret 0xc