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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [esi + 4]
mov byte [ebx + esi + 8], dl
inc ebx
mov eax, dword [esi]
mov dword [esi + 4], ebx
cmp eax, 6
jne 0x583592
cmp ebx, 3
jb 0x583586
mov edx, dword [esi + 8]
mov ecx, edx
shr ecx, 1
and ecx, 3
cmp ecx, 1
jne 0x5834dd
cmp ebx, 3
je 0x583586
add dword [edi], ecx
adc dword [edi + 4], 0
jmp 0x5834ed
add dword [edi], 1
adc dword [edi + 4], 0
cmp ecx, 3
je 0x583582
mov al, dl
mov byte [esi + 0x19], cl
and al, 1
shr edx, 3
mov byte [esi + 0x18], al
mov dword [esi + 0x2c], 0
mov dword [esi + 4], 0
and edx, 0x1fffff
jne 0x58352d
cmp ecx, 2
je 0x583582
test al, al
je 0x583586
test byte [esi + 0x16], 4
je 0x583651
lea eax, [edx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x98]
mov edi, 0x20000
cmp eax, edi
mov dword [esi + 0x20], edx
cmovb edi, eax
cmp edx, edi
ja 0x583582
test byte [esi + 0x16], 0xe0
je 0x58356a
mov ebx, dword [esi + 0x30]
sub ebx, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
sbb eax, dword [esi + 0x3c]
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], eax
jb 0x58356a
ja 0x583568
cmp edi, ebx
jbe 0x58356a
mov edi, ebx
mov dword [esi + 0x28], edi
cmp ecx, 2
je 0x583576
cmp edx, edi
ja 0x583582
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x1a], 1
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 3
jae 0x58367a
cmp ebx, 4
jne 0x5837c5
mov ebx, dword [esi + 8]
cmp eax, 1
jae 0x583602
cmp ebx, 0xfd2fb528
jne 0x5835cf
mov dword [esi + 4], 0
add dword [edi + 0x18], 1
adc dword [edi + 0x1c], 0
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and ebx, 0xfffffff0
cmp ebx, 0x184d2a50
jne 0x5835f5
mov dword [esi + 4], 0
mov eax, 2
add dword [edi + 0x20], 1
adc dword [edi + 0x24], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x1a], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jne 0x58365d
mov byte [edi + 0xc], 1
mov dword [edi + 0x10], ebx
cmp byte [esi + 0x1c], 0
jne 0x583651
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x80]
and eax, 0x1f
cmp ecx, eax
jae 0x583631
mov byte [esi + 0x1a], 1
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x78]
push dword [esi + 0x3c]
sub edx, eax
push dword [esi + 0x38]
add edx, ecx
lea ecx, [esi + 0x40]
call fcn.00465750
add esp, 8
cmp eax, ebx
je 0x583651
mov byte [esi + 0x1b], 1
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x20], ebx
mov eax, 3
add dword [edi + 0x28], ebx
adc dword [edi + 0x2c], 0
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dl, byte [esi + 8]
movzx ecx, dl
mov dword [ebp - 0x18], ecx
mov byte [esi + 0x16], dl
test cl, 8
je 0x58369b
mov byte [esi + 0x1a], 1
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
shr ecx, 5
and eax, 3
shl ecx, 2
mov dword [ebp - 0x10], eax
mov eax, 0x9a563422
shr eax, cl
mov ecx, 3
sub ecx, dword [ebp - 0x10]
and eax, 0xf
sub ebx, eax
mov eax, 4
shr eax, cl
cmp ebx, eax
jne 0x5835c3
or byte [edi + 8], dl
lea ebx, [esi + 9]
mov ecx, dword [ebp - 0x18]
not dl
or byte [edi + 9], dl
xor al, al
mov dword [ebp - 8], ebx
test cl, 0x20
jne 0x5836f2
mov al, byte [ebx]
inc ebx
mov dword [ebp - 8], ebx
cmp byte [edi + 0xb], al
jae 0x5836f2
mov byte [edi + 0xb], al
mov byte [esi + 0x17], al
xor edx, edx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x583721
lea ecx, [eax - 1]
or edx, 0xffffffff
mov eax, 1
shl eax, cl
mov ecx, 4
sub ecx, eax
shl ecx, 3
shr edx, cl
and edx, dword [ebx]
add ebx, eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ebx
mov dword [esi + 0x24], edx
test edx, edx
je 0x58373c
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x583734
mov dword [edi + 0x14], edx
jmp 0x58373c
cmp eax, edx
je 0x58373c
mov byte [edi + 0xd], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
cmp ecx, 0x20
jb 0x5837a5
shr ecx, 6
cmp ecx, 1
jne 0x58375a
mov ebx, 0x100
xor eax, eax
jmp 0x583760
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
or edx, 0xffffffff
mov eax, 8
shl eax, cl
mov ecx, 0x40
sub ecx, eax
or eax, 0xffffffff
call fcn.005a80a0
mov ecx, dword [ebp - 8]
and eax, dword [ecx]
and edx, dword [ecx + 4]
add ebx, eax
mov eax, dword [ebp - 0x18]
adc eax, edx
cmp dword [edi + 0x3c], eax
ja 0x58379d
jb 0x583797
cmp dword [edi + 0x38], ebx
jae 0x58379d
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], eax
add dword [edi + 0x30], ebx
adc dword [edi + 0x34], eax
jmp 0x5837af
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov byte [edi + 0xa], 1
mov dword [esi + 0x34], eax
mov eax, 5
mov dword [esi + 0x30], ebx
mov dword [esi + 4], 0
mov byte [edi + 0xc], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret