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

Disassembly:
sub esp, 0x298
push ebx
push ebp
push esi
push edi
push 0x6e18f8
xor ebp, ebp
push str.Encoding__s_image
lea eax, [esp + 0xa8]
mov word [esp + 0xa8], bp
call fcn.00483050
mov ecx, dword [esp + 0x2b8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
add esp, 8
push ebp
lea edx, [esp + 0xa4]
push edx
call eax
mov ecx, dword [esp + 0x2b4]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x14]
fild dword [ecx + 0x14]
test edx, edx
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], esi
jge 0x582c2b
fadd qword [0x7235b8]
fld qword [0x723bf8]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
fmul st(1), st(0)
mov dword [esp + 0x14], eax
fxch st(1)
fldcw word [esp + 0x14]
mov eax, dword [ecx + 0xc]
fistp qword [esp + 0x50]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0x10]
cmp eax, ebp
fldcw word [esp + 0x18]
mov dword [esp + 0x54], eax
jne 0x582c71
fld qword [0x723758]
jmp 0x582c84
fild dword [esp + 0x50]
fidiv dword [esp + 0x54]
fldz
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x582cbc
mov edx, dword [ecx + 0x18]
fild dword [ecx + 0x18]
test edx, edx
jge 0x582c94
fadd qword [0x7235b8]
fmul st(2)
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
fdivrp st(1)
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp qword [esp + 0x50]
mov edx, dword [esp + 0x50]
fldcw word [esp + 0x18]
jmp 0x582cbe
fstp st(0)
mov ecx, dword [ecx + 0x18]
add esi, 0xffffffff
test ecx, ecx
lea eax, [ebx - 1]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
mov byte [esp + 0x5c], 0xa
mov byte [esp + 0x5d], 5
mov byte [esp + 0x5e], 1
mov byte [esp + 0x5f], 8
mov word [esp + 0x60], bp
mov word [esp + 0x62], bp
mov word [esp + 0x64], ax
mov word [esp + 0x66], si
mov word [esp + 0x68], dx
jge 0x582d06
fadd qword [0x7235b8]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
fmulp st(1)
mov dword [esp + 0x14], eax
movzx eax, bl
fldcw word [esp + 0x14]
and eax, 1
add eax, ebx
lea ecx, [esp + 0x14]
fistp dword [esp + 0x14]
mov dx, word [esp + 0x14]
mov word [esp + 0x6d], ax
mov eax, dword [esp + 0x2b4]
push ecx
lea edi, [esp + 0x60]
mov word [esp + 0x6e], dx
fldcw word [esp + 0x1c]
mov byte [esp + 0x70], 3
call fcn.005b8260
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x582d77
mov ecx, dword [esp + 0x2ac]
mov dword [ecx], eax
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x298
ret 0xc
movzx ebx, word [esp + 0x6d]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 0
mov dword [esp + 0x2a], ebp
mov dword [esp + 0x2e], ebp
mov dword [esp + 0x32], ebp
mov byte [esp + 0x36], 0
mov byte [esp + 0x37], 0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov byte [esp + 0x44], 0
mov byte [esp + 0x45], 0
lea ebx, [ebx + ebx + 1]
lea esi, [esp + 0x24]
mov edi, 3
jmp 0x582dd0
mov edx, dword [esi - 8]
push edx
call fcn.0069c8fa
add esp, 4
push ebx
call fcn.0069c0de
mov dword [esi - 8], eax
mov dword [esi - 4], ebp
mov dword [esi], ebp
mov byte [esi + 4], 0
mov byte [esi + 5], 0
add esp, 4
add esi, 0xe
sub edi, 1
jne 0x582dd0
mov eax, dword [esp + 0x2b4]
mov edi, dword [eax]
push ebp
lea eax, [esp + 0x7c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x50], ebp
call fcn.004d2430
mov ecx, dword [esp + 0x8c]
cmp ecx, dword [esp + 0x78]
jae 0x58319e
mov ebp, dword [esp + 0x2a]
mov bl, byte [esp + 0x29]
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x78]
lea ecx, [esp + 0x50]
call dword [esp + 0x98]
mov edx, dword [eax]
mov eax, edx
mov esi, 1
add dword [esp + 0x24], esi
mov dword [esp + 0x48], edx
shr edx, 8
shr eax, 0x10
test bl, bl
mov byte [esp + 0x19], dl
je 0x582edb
cmp al, byte [esp + 0x28]
jne 0x582e92
add bl, 1
cmp bl, 0x3f
mov byte [esp + 0x29], bl
jne 0x582ee5
mov ecx, dword [esp + 0x20]
mov eax, ecx
add ecx, 2
mov dword [esp + 0x20], ecx
mov cl, byte [esp + 0x28]
mov byte [edi + eax], 0xff
mov byte [edi + eax + 1], cl
xor bl, bl
jmp 0x582ee1
cmp bl, 1
mov ecx, dword [esp + 0x20]
jne 0x582ebd
mov dl, byte [esp + 0x28]
and dl, 0xc0
cmp dl, 0xc0
je 0x582eb9
movzx edx, byte [esp + 0x28]
add dword [esp + 0x20], esi
mov byte [edi + ecx], dl
mov dl, byte [esp + 0x19]
jmp 0x582edb
mov dl, byte [esp + 0x19]
add dword [esp + 0x20], 2
mov esi, dword [esp + 0x1c]
or bl, 0xc0
mov byte [edi + ecx], bl
mov bl, byte [esp + 0x28]
mov byte [esi + ecx + 1], bl
mov edi, esi
mov esi, 1
mov bl, 1
mov byte [esp + 0x28], al
mov byte [esp + 0x29], bl
mov cl, byte [esp + 0x37]
add dword [esp + 0x32], esi
test cl, cl
je 0x582f67
cmp dl, byte [esp + 0x36]
jne 0x582f23
add cl, 1
cmp cl, 0x3f
mov byte [esp + 0x37], cl
jne 0x582f70
mov ecx, dword [esp + 0x2e]
mov eax, ecx
add ecx, 2
mov dword [esp + 0x2e], ecx
mov cl, byte [esp + 0x36]
mov byte [eax + ebp], 0xff
mov byte [eax + ebp + 1], cl
mov byte [esp + 0x37], 0
jmp 0x582f70
cmp cl, 1
mov eax, dword [esp + 0x2e]
jne 0x582f49
mov dl, byte [esp + 0x36]
and dl, 0xc0
cmp dl, 0xc0
mov dl, byte [esp + 0x19]
je 0x582f49
mov cl, byte [esp + 0x36]
add dword [esp + 0x2e], esi
mov byte [eax + ebp], cl
jmp 0x582f67
add dword [esp + 0x2e], 2
mov esi, dword [esp + 0x2a]
or cl, 0xc0
mov byte [eax + ebp], cl
mov cl, byte [esp + 0x36]
mov byte [esi + eax + 1], cl
mov ebp, esi
mov esi, 1
mov byte [esp + 0x37], 1
mov byte [esp + 0x36], dl
mov cl, byte [esp + 0x45]
add dword [esp + 0x40], esi
test cl, cl
je 0x582ff3
mov dl, byte [esp + 0x44]
cmp byte [esp + 0x48], dl
jne 0x582fb9
add cl, 1
cmp cl, 0x3f
mov byte [esp + 0x45], cl
jne 0x583000
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov eax, ecx
add ecx, 2
mov dword [esp + 0x3c], ecx
mov byte [esi + eax], 0xff
mov cl, dl
mov byte [esi + eax + 1], cl
mov byte [esp + 0x45], 0
mov esi, 1
jmp 0x583000
cmp cl, 1
mov eax, dword [esp + 0x3c]
jne 0x582fdb
and dl, 0xc0
cmp dl, 0xc0
mov dl, byte [esp + 0x44]
je 0x582fdb
mov ecx, dword [esp + 0x38]
add dword [esp + 0x3c], esi
mov byte [ecx + eax], dl
jmp 0x582ff3
mov esi, dword [esp + 0x38]
add dword [esp + 0x3c], 2
or cl, 0xc0
mov byte [esi + eax], cl
mov byte [esi + eax + 1], dl
mov esi, 1
mov dl, byte [esp + 0x48]
mov byte [esp + 0x45], 1
mov byte [esp + 0x44], dl
mov eax, dword [esp + 0x4c]
add eax, esi
cmp eax, dword [esp + 0x74]
mov dword [esp + 0x4c], eax
jb 0x583136
mov dword [esp + 0x4c], 0
lea esi, [esp + 0x29]
mov eax, dword [esp + 0x2b4]
mov ecx, dword [eax + 4]
mov al, byte [esi]
xor ebp, ebp
test al, al
mov dword [esp + 0x48], ecx
jbe 0x583070
cmp al, 1
mov ecx, dword [esi - 9]
jne 0x583058
mov dl, byte [esi - 1]
mov bl, dl
and bl, 0xc0
cmp bl, 0xc0
je 0x583058
lea eax, [ecx + 1]
mov dword [esi - 9], eax
mov eax, dword [esi - 0xd]
mov byte [ecx + eax], dl
jmp 0x58306d
lea edx, [ecx + 2]
mov dword [esi - 9], edx
mov edx, dword [esi - 0xd]
add ecx, edx
or al, 0xc0
mov byte [ecx], al
mov al, byte [esi - 1]
mov byte [ecx + 1], al
mov byte [esi], 0
test byte [esi - 5], 1
je 0x583086
mov eax, dword [esi - 9]
mov edx, dword [esi - 0xd]
lea ecx, [eax + 1]
mov dword [esi - 9], ecx
mov byte [eax + edx], 0
mov edi, dword [esi - 9]
mov eax, dword [esi - 0xd]
mov ecx, dword [esp + 0x48]
push edi
push eax
add ecx, 0x10
xor ebx, ebx
push ecx
mov dword [esi - 5], ebx
call fcn.004bb3f0
cmp eax, edi
je 0x5830a9
mov ebp, 2
cmp ebp, ebx
mov dword [esi - 9], ebx
jne 0x5831d3
mov eax, dword [esp + 0x4c]
add eax, 1
add esi, 0xe
cmp eax, 3
mov dword [esp + 0x4c], eax
jb 0x583020
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2b0]
mov edx, dword [esi]
add eax, 1
test eax, eax
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x14], eax
jge 0x5830f9
fadd qword [0x7235b8]
mov eax, dword [esp + 0x70]
fild dword [esp + 0x70]
test eax, eax
jge 0x58310b
fadd qword [0x7235b8]
fdivp st(1)
mov edx, dword [edx + 0x24]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call edx
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
test al, al
jne 0x583208
mov ebp, dword [esp + 0x2a]
mov bl, byte [esp + 0x29]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x8c]
mov esi, dword [esp + 0x78]
cmp edx, esi
jae 0x58319c
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
add eax, dword [esp + 0x84]
add ecx, 1
add edx, 1
cmp ecx, dword [esp + 0x7c]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x8c], edx
jne 0x583194
add eax, dword [esp + 0x80]
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], eax
cmp edx, esi
jb 0x582e35
xor ebp, ebp
mov ebx, dword [esp + 0x2ac]
mov dword [ebx], ebp
lea esi, [esp + 0x46]
mov edi, 2
mov edx, dword [esi - 0xe]
sub esi, 0xe
push edx
call fcn.0069c8fa
add esp, 4
sub edi, 1
jns 0x5831b0
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x298
ret 0xc
mov ebx, dword [esp + 0x2ac]
mov dword [ebx], ebp
lea esi, [esp + 0x46]
mov edi, 2
mov eax, dword [esi - 0xe]
sub esi, 0xe
push eax
call fcn.0069c8fa
add esp, 4
sub edi, 1
jns 0x5831e5
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x298
ret 0xc
mov ebx, dword [esp + 0x2ac]
mov dword [ebx], 1
lea esi, [esp + 0x46]
mov edi, 2
mov edi, edi
mov ecx, dword [esi - 0xe]
sub esi, 0xe
push ecx
call fcn.0069c8fa
add esp, 4
sub edi, 1
jns 0x583220
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x298
ret 0xc