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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x584b37
sub esp, 0x54
mov edx, dword [esp + 0x5c]
cmp edx, 4
jl 0x5847e5
nop
lea ecx, [edx - 2]
mov ebx, dword [esp + 0x58]
movzx ebp, byte [ebx + 1]
movzx esi, byte [ebx]
shl esi, 8
or ebp, esi
cmp ecx, 1
jbe 0x584b2c
mov word [esp + 0x22], bp
movzx eax, byte [ebx + 3]
movzx ecx, byte [ebx + 2]
shl ecx, 8
or eax, ecx
movzx eax, ax
mov ecx, eax
shl eax, 2
add eax, 4
cmp edx, eax
jl 0x584721
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
lea eax, [0x6b35e0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044bce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x58]
xor esi, esi
jmp 0x584887
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
lea eax, [0x70504c]
mov dword [esp], eax
mov dword [esp + 4], 0x37
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx edx, word [esp + 0x22]
mov word [esp + 0x64], dx
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x54
ret
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp], edx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x7047c0]
mov dword [esp], eax
mov dword [esp + 4], 0x36
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov word [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x54
ret
mov edi, dword [esp + 0x24]
lea esi, [edi + 1]
mov edi, dword [esp + 0x60]
mov edx, ebx
mov ebx, edi
cmp esi, ecx
jge 0x584ad3
mov dword [esp + 0x24], esi
shl esi, 2
lea edi, [esi + 4]
cmp edx, edi
jb 0x584b23
sub ebx, esi
add ebx, 0xfffffffc
neg ebx
sar ebx, 0x1f
and edi, ebx
mov ebx, edx
sub edx, esi
add edx, 0xfffffffc
cmp edx, 3
jbe 0x584b17
movzx edx, byte [ebp + edi + 3]
movzx esi, byte [ebp + edi + 2]
shl esi, 8
or edx, esi
movzx esi, byte [ebp + edi + 1]
shl esi, 0x10
or esi, edx
movzx edx, byte [ebp + edi]
shl edx, 0x18
or edx, esi
test edx, edx
je 0x584878
cmp ebx, edx
jl 0x584a13
jb 0x584b0e
mov eax, dword [esp + 0x60]
sub eax, edx
mov esi, eax
neg eax
sar eax, 0x1f
and eax, edx
add eax, ebp
mov dword [esp], eax
sub ebx, edx
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.00582790
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
cmp esi, edi
jae 0x584b05
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebx
mov ebp, dword [esp + 0x38]
lea ebx, [ebp + esi*8]
mov dword [ebx], ecx
mov ebx, dword [0x1eaa9f0]
mov ecx, ebp
lea ebp, [ebp + esi*8 + 4]
test ebx, ebx
jne 0x584960
mov dword [ebp], eax
jmp 0x58496b
mov ebx, edi
mov edi, ebp
call fcn.00465d80
mov edi, ebx
test edx, edx
jne 0x584980
mov eax, ecx
mov ecx, edi
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
jmp 0x584878
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x58499d
mov ebx, dword [eax + 4]
jmp 0x58499f
mov ebx, eax
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
lea eax, [0x6f94d9]
mov dword [esp], eax
mov dword [esp + 4], 0x19
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx edx, word [esp + 0x22]
mov word [esp + 0x64], dx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x54
ret
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp], edx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
lea eax, [0x70504c]
mov dword [esp], eax
mov dword [esp + 4], 0x37
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx edx, word [esp + 0x22]
mov word [esp + 0x64], dx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x54
ret
movzx edx, word [esp + 0x22]
mov word [esp + 0x64], dx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x54
ret
mov eax, esi
mov ecx, edi
call fcn.00465e00
mov eax, edx
mov ecx, ebx
call fcn.00465e60
mov eax, 3
mov ecx, edx
call fcn.00465e00
mov eax, edi
mov ecx, edx
call fcn.00465e60
mov eax, 1
call fcn.00465e00
nop
call fcn.004649b0
jmp fcn.00584680