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

Disassembly:
sub esp, 0x118
mov edx, dword [esp + 0x11c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x94]
mov dword [esp + 0x44], esi
call fcn.00585ad0
mov ecx, dword [eax]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov edi, dword [eax + 8]
mov dword [esp + 0x60], edi
mov eax, dword [eax + 0xc]
cmp eax, 5
mov dword [esp + 0x64], eax
jle 0x58428e
lea edi, [edx + 2]
lea ebx, [eax - 2]
mov word [esp + 0x22], di
mov edi, 3
cmp ebx, edi
mov word [esp + 0x20], cx
jle 0x584293
jmp 0x58404a
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x58]
push 2
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.00585210
mov eax, dword [eax]
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], eax
push 2
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
mov ecx, esi
call fcn.00585500
mov eax, dword [eax]
xor ebp, ebp
cmp ax, bp
mov dword [esp + 0x2c], eax
jne 0x584098
cmp word [esp + 0x2e], bp
je 0x58426b
mov cx, word [esp + 0x20]
cmp cx, bp
jne 0x5840ad
cmp word [esp + 0x22], bp
je 0x58426b
movsx ecx, cx
movsx edx, ax
sub edx, ecx
cmp edx, 6
jl 0x58426b
movsx eax, word [esp + 0x28]
movsx ecx, word [esp + 0x2a]
sub eax, 4
mov dword [esp + 0x80], ecx
push ebp
xor dl, dl
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], 4
mov dword [esp + 0x8c], edi
call fcn.005856e0
test al, al
je 0x584158
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
fild qword [esp + 0x10]
fmul qword [0x790dd0]
call fcn.0076a6b0
cmp eax, 1
ja 0x5840fe
cmp eax, ebp
je 0x584158
mov edx, dword [esp + 0x28]
mov ax, word [esp + 0x2a]
add edx, 0xfffffffd
mov word [esp + 0x3a], ax
mov eax, dword [0xa55924]
mov word [esp + 0x38], dx
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
mov dword [esp + 0x34], ecx
push 0xffffffffffffffff
lea edx, [esp + 0x38]
lea ecx, [eax + 9]
jmp 0x584169
mov ecx, dword [0xa55920]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x30]
add ecx, 2
call fcn.005850a0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
movsx edx, ax
movsx edi, cx
sub edi, edx
xor esi, esi
dec edi
test edi, edi
jle 0x5841d3
lea ecx, [esi + 1]
push 0xffffffffffffffff
mov word [esp + 0x40], cx
mov edx, dword [esp + 0x40]
add edx, eax
mov ax, word [esp + 0x2e]
mov word [esp + 0x38], dx
mov word [esp + 0x3a], ax
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
mov dword [esp + 0x38], ecx
mov ecx, dword [0xa55924]
lea edx, [esp + 0x38]
call fcn.005850a0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
movsx edx, ax
movsx edi, cx
sub edi, edx
inc esi
dec edi
cmp esi, edi
jl 0x584185
movsx eax, cx
movsx ecx, word [esp + 0x2e]
mov dword [esp + 0x70], ecx
push ebp
xor dl, dl
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], 4
mov dword [esp + 0x7c], 3
call fcn.005856e0
test al, al
je 0x584248
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebp
fild qword [esp + 0x8c]
fmul qword [0x790dd0]
call fcn.0076a6b0
cmp eax, 1
ja 0x584203
cmp eax, ebp
je 0x584248
mov eax, dword [0xa55924]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x34]
lea ecx, [eax + 0xa]
jmp 0x584256
mov ecx, dword [0xa55920]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x34]
call fcn.005850a0
sub ebx, 0xa
add word [esp + 0x22], 0xa
mov edi, 3
jmp 0x584274
add word [esp + 0x22], 2
sub ebx, 2
cmp ebx, edi
jg 0x584046
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x44]
jmp 0x584295
mov edi, 3
xor ebp, ebp
cmp dword [esp + 0x60], 8
jle 0x584985
lea ebx, [eax - 5]
add ecx, 5
cmp ebx, edi
mov dword [esp + 0x28], ebx
mov word [esp + 0x20], cx
mov word [esp + 0x22], dx
jle 0x584985
lea ecx, [esp + 0x58]
push 4
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x12c]
push edx
push eax
mov ecx, esi
call fcn.00585210
mov ecx, dword [eax]
lea edx, [esp + 0x58]
mov dword [esp + 0x10], ecx
push 4
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x94]
push eax
push ecx
mov ecx, esi
call fcn.00585500
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov dx, word [esp + 0x2e]
cmp ax, bp
jne 0x584311
cmp dx, bp
je 0x584970
cmp word [esp + 0x20], bp
mov ax, word [esp + 0x22]
jne 0x584326
cmp ax, bp
je 0x584970
movsx ecx, dx
movsx eax, ax
sub ecx, eax
cmp ecx, 6
jl 0x584970
mov ax, word [esp + 0x12]
mov byte [esp + 0x1b], 0
cmp ax, dx
mov bl, 1
mov byte [esp + 0x1a], 0
mov byte [esp + 0x27], 0
jge 0x5848bb
mov cl, byte [esp + 0x1b]
test cl, cl
movsx ecx, word [esp + 0x10]
jne 0x58450b
mov esi, 2
mov edx, edi
mov dword [esp + 0xb0], esi
mov esi, edi
mov dword [esp + 0x10c], esi
mov dword [esp + 0xac], edx
movsx esi, word [esp + 0x2e]
movsx eax, ax
sub esi, eax
mov edi, 4
lea edx, [eax - 3]
cmp esi, 2
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], edx
mov dword [esp + 0x110], edi
jl 0x584954
test bl, bl
je 0x584488
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], edx
push ebp
xor dl, dl
lea ecx, [esp + 0xe8]
mov dword [esp + 0xf0], 3
mov dword [esp + 0xf4], edi
call fcn.005856e0
test al, al
je 0x584488
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ebp
fild qword [esp + 0x6c]
fmul qword [0x790dd0]
call fcn.0076a6b0
cmp eax, 1
ja 0x584402
cmp eax, ebp
je 0x584488
mov edx, dword [esp + 0x12]
mov cx, word [esp + 0x10]
add edx, 0xfffffffd
mov word [esp + 0x34], cx
mov ecx, dword [0xa55924]
mov word [esp + 0x36], dx
mov eax, dword [esp + 0x34]
push 0xffffffffffffffff
mov dword [esp + 0x20], eax
push 0xffffffffffffffff
lea edx, [esp + 0x24]
add ecx, 0xd
call fcn.005850a0
mov byte [esp + 0x1b], 1
mov edi, 3
mov ax, word [esp + 0x12]
xor bl, bl
inc ax
cmp ax, word [esp + 0x2e]
mov word [esp + 0x12], ax
jl 0x584356
jmp 0x584881
lea ecx, [esp + 0x104]
call fcn.00585b70
test al, al
je 0x5844df
mov eax, dword [esp + 0x12]
mov dx, word [esp + 0x10]
add eax, 0xfffffffd
mov word [esp + 0x38], dx
mov word [esp + 0x3a], ax
mov ecx, dword [esp + 0x38]
mov eax, dword [0xa55924]
mov dword [esp + 0x1c], ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x24]
lea ecx, [eax + 5]
call fcn.005850a0
mov ecx, dword [0xa55924]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x18]
inc ecx
jmp 0x58445b
push ebp
xor dl, dl
lea ecx, [esp + 0xa8]
call fcn.005856e0
test al, al
je 0x584465
mov eax, dword [0xa55920]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x18]
lea ecx, [eax + 1]
jmp 0x58445b
movsx edx, ax
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], edx
mov esi, 1
push ebp
xor dl, dl
lea ecx, [esp + 0xd8]
mov dword [esp + 0xe0], edi
mov dword [esp + 0xe4], esi
call fcn.005856e0
test al, al
je 0x5845e1
mov eax, dword [0xa55924]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x18]
lea ecx, [eax + 1]
call fcn.005850a0
mov al, byte [esp + 0x1a]
test al, al
je 0x58446a
mov al, byte [esp + 0x27]
test al, al
je 0x5845ab
mov ecx, dword [esp + 0x10]
mov dx, word [esp + 0x12]
inc ecx
mov word [esp + 0x56], dx
mov word [esp + 0x54], cx
mov ecx, dword [0xa3a884]
mov eax, dword [esp + 0x54]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x24]
add ecx, 5
mov dword [esp + 0x24], eax
call fcn.005850a0
mov byte [esp + 0x27], 0
jmp 0x58446a
mov edx, dword [esp + 0x10]
mov ax, word [esp + 0x12]
inc edx
mov word [esp + 0x6a], ax
mov eax, dword [0xa3a884]
mov word [esp + 0x68], dx
mov ecx, dword [esp + 0x68]
push 0xffffffffffffffff
mov dword [esp + 0x20], ecx
push 0xffffffffffffffff
lea edx, [esp + 0x24]
lea ecx, [eax + 4]
call fcn.005850a0
jmp 0x58446a
movsx ecx, word [esp + 0x10]
movsx edx, word [esp + 0x12]
mov al, byte [esp + 0x1a]
mov dword [esp + 0xb4], ecx
test al, al
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], 4
je 0x584649
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x12]
inc eax
dec ecx
mov word [esp + 0x50], ax
mov eax, dword [0xa3a884]
mov word [esp + 0x52], cx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x1c], edx
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x24]
lea ecx, [eax + 3]
call fcn.005850a0
mov byte [esp + 0x1a], 0
lea ecx, [esp + 0xb4]
call fcn.00585b70
test al, al
je 0x5847c1
movsx ebx, word [esp + 0x2e]
movsx eax, word [esp + 0x12]
mov ecx, ebx
sub ecx, eax
cmp ecx, 4
jl 0x584867
movsx edx, word [esp + 0x10]
mov dword [esp + 0xc4], edx
add eax, 3
push ebp
xor dl, dl
lea ecx, [esp + 0xc8]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd4], 2
call fcn.005856e0
test al, al
je 0x5846c5
movsx eax, word [esp + 0x12]
sub ebx, eax
cmp ebx, 5
jle 0x5846c5
mov byte [esp + 0x1a], 1
mov byte [esp + 0x27], 1
mov ecx, dword [0xa55924]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x18]
add ecx, 3
call fcn.005850a0
movsx edx, word [esp + 0x10]
movsx eax, word [esp + 0x12]
dec edx
push ebp
mov dword [esp + 0xf8], edx
mov dl, 1
lea ecx, [esp + 0xf8]
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], esi
mov dword [esp + 0x104], edi
call fcn.005856e0
test al, al
je 0x584747
mov ecx, dword [esp + 0x10]
mov dx, word [esp + 0x12]
dec ecx
mov word [esp + 0x4e], dx
mov word [esp + 0x4c], cx
mov ecx, dword [0xa3a884]
mov eax, dword [esp + 0x4c]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x24]
add ecx, 0xc
mov dword [esp + 0x24], eax
call fcn.005850a0
movsx edx, word [esp + 0x10]
movsx eax, word [esp + 0x12]
add edx, edi
push ebp
mov dword [esp + 0x118], edx
mov dl, 1
lea ecx, [esp + 0x118]
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], esi
mov dword [esp + 0x124], edi
call fcn.005856e0
test al, al
je 0x5847b6
mov ecx, dword [esp + 0x10]
mov dx, word [esp + 0x12]
add ecx, 3
mov word [esp + 0x4a], dx
mov word [esp + 0x48], cx
mov ecx, dword [0xa3a884]
mov eax, dword [esp + 0x48]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x24]
add ecx, 0xc
mov dword [esp + 0x24], eax
call fcn.005850a0
add word [esp + 0x12], 2
jmp 0x58446a
mov eax, dword [esp + 0x12]
mov dx, word [esp + 0x10]
dec eax
mov word [esp + 0x40], dx
mov word [esp + 0x42], ax
mov ecx, dword [esp + 0x40]
mov eax, dword [0xa55920]
mov dword [esp + 0x1c], ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x24]
lea ecx, [eax + 3]
call fcn.005850a0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x12]
inc ecx
add edx, 0xfffffffe
mov word [esp + 0x3c], cx
lea ecx, [esp + 0x1c]
mov word [esp + 0x3e], dx
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, 0x81a800
mov dword [esp + 0x20], eax
call fcn.005453b0
mov esi, eax
mov ecx, esi
call fcn.0047b540
test al, al
je 0x58485d
mov ecx, esi
call fcn.0047b540
test al, al
je 0x58485d
mov edx, dword [0xa55924]
push ebp
inc edx
mov ecx, esi
mov dword [esi + 0x38], edx
mov byte [esi + 0x11a], 1
call fcn.004766c0
mov esi, eax
mov ecx, esi
call fcn.0047b540
test al, al
jne 0x584837
mov byte [esp + 0x1b], 0
jmp 0x58446a
mov eax, dword [0xa55924]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x18]
lea ecx, [eax + 7]
call fcn.005850a0
jmp 0x584959
mov al, byte [esp + 0x1a]
test al, al
je 0x5848bb
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x12]
inc ecx
dec edx
mov word [esp + 0x30], cx
mov ecx, dword [0xa3a884]
mov word [esp + 0x32], dx
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x24]
add ecx, 3
mov dword [esp + 0x24], eax
call fcn.005850a0
movsx edx, word [esp + 0x10]
movsx eax, word [esp + 0x12]
mov dword [esp + 0x94], edx
push ebp
xor dl, dl
lea ecx, [esp + 0x98]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], 4
call fcn.005856e0
test al, al
je 0x58493d
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ebp
fild qword [esp + 0x7c]
fmul qword [0x790dd0]
call fcn.0076a6b0
cmp eax, 1
ja 0x5848f8
cmp eax, ebp
je 0x58493d
mov ecx, dword [0xa55924]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x18]
add ecx, 0xc
call fcn.005850a0
jmp 0x584959
mov eax, dword [0xa55920]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x18]
lea ecx, [eax + 3]
call fcn.005850a0
jmp 0x584959
mov edi, 3
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x44]
sub ebx, 0xa
add word [esp + 0x20], 0xa
mov dword [esp + 0x28], ebx
jmp 0x58497d
add word [esp + 0x20], 2
sub ebx, 2
mov dword [esp + 0x28], ebx
cmp ebx, edi
jg 0x5842bc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4