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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x264
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x260], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, edx
mov edx, dword [ebp + 0xc]
mov ebx, dword [esi + 0x1ef4]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + edx*4]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + edi*4]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + eax*4]
mov dword [esp + 0x28], edx
xor edx, edx
cmp eax, edi
mov edi, dword [esp + 0x28]
mov edi, dword [edi + 0x54]
mov eax, dword [esi + 0x9dc]
mov eax, dword [eax + 0x43c]
setl dl
mov dword [esp + 0x3c], edi
imul edi, ebx
mov dword [esp + 0x20], eax
imul eax, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x1ef0]
add edi, edx
add edi, edi
add edi, edi
add eax, edx
add edi, edi
cmp dword [esi + 0x16c], 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
je 0x584b8e
mov ebx, dword [ebp + 0x18]
sar ebx, 2
mov edx, 0x40
sub edx, ebx
mov dword [esp + 0x30], edx
jmp 0x584b96
mov dword [esp + 0x30], 0x20
mov edx, dword [ebp + 0x14]
mov ecx, dword [ecx + edx*4]
sub edx, dword [ebp + 0xc]
lea ebx, [eax*4]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0x14]
mov dword [esp + 0x48], edx
mov edx, dword [ecx + edx*4 + 0xb8]
add edx, ebx
mov dword [esp + 0x58], edx
mov edx, dword [ecx + eax*4 + 0xfc]
mov eax, dword [ecx + eax*4 + 0x184]
add edx, ebx
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x48]
mov edx, dword [ecx + edx*4 + 0x140]
mov ecx, dword [esp + 0x3c]
add edx, ebx
add eax, ebx
push 8
push ecx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x58], eax
lea eax, [esi + 0x2140]
mov dword [esi + 0x3008], eax
mov ecx, dword [edx + 0x7c]
mov edx, dword [esi + 0x4d0c]
add ecx, edi
push ecx
push 0x10
push eax
mov dword [esp + 0x30], 0x10000000
call edx
add esp, 0x14
cmp dword [ebp + 0xc], 0
jne 0x584c31
cmp dword [ebp + 0x10], 0
jne 0x584c31
cmp dword [ebp + 0x14], 0
je 0x5852d1
mov eax, dword [esi + 0x1ef0]
lea edx, [eax*8]
mov ecx, 0xfffffffc
sub ecx, edx
mov edx, dword [esi + 0x9dc]
mov dword [esi + 0x1f44], ecx
mov edx, dword [edx + 0x43c]
sub edx, eax
lea edx, [edx*8 - 4]
lea ecx, [ecx*4 - 0x20]
mov dword [esi + 0x1f34], ecx
lea ecx, [edx*4 + 0x20]
mov dword [esi + 0x1f3c], ecx
mov ecx, dword [esi + 0x9dc]
mov dword [esi + 0x1f4c], edx
mov edx, dword [ecx + 0x43c]
sub edx, 2
cmp eax, edx
jl 0x584ce4
mov ecx, dword [esi + 0x1ef4]
lea edx, [ecx*8]
mov eax, 0xfffffffc
sub eax, edx
mov edx, dword [esi + 0x9dc]
mov dword [esi + 0x1f48], eax
mov edx, dword [edx + 0x440]
sub edx, ecx
lea ecx, [edx*8 - 4]
lea edx, [eax*4 - 0x20]
mov eax, ecx
mov dword [esi + 0x1f50], ecx
lea ecx, [eax*4 + 0x20]
mov dword [esi + 0x1f38], edx
mov dword [esi + 0x1f40], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 0x3008]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x60], 3
mov ecx, dword [eax + 0x7c]
add ecx, edi
mov dword [esp + 0x70], ecx
mov edx, dword [eax + 0x80]
add edx, edi
mov dword [esp + 0x74], edx
mov ecx, dword [eax + 0x84]
add ecx, edi
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 0x88]
add edx, edi
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x7c], edx
je 0x585024
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + eax*4 + 0xb8]
mov ecx, dword [esi + 0x4d30]
add eax, ebx
push 0x50
lea edx, [esp + 0x64]
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0xb8]
push eax
call ecx
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x7c]
add edx, edi
mov dword [esp + 0xcc], edx
mov ecx, dword [eax + 0x80]
add ecx, edi
mov dword [esp + 0xd0], ecx
mov edx, dword [eax + 0x84]
mov ecx, dword [esp + 0x20]
add edx, edi
mov dword [esp + 0xd4], edx
mov eax, dword [eax + 0x88]
mov edx, dword [ebp + 0x18]
add eax, edi
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x20]
movsx eax, word [eax + 2]
movsx ecx, word [ecx]
mov dword [esp + 0x30], eax
imul eax, edx
mov ebx, ecx
imul ebx, edx
add eax, 0x80
sar eax, 8
add ebx, 0x80
mov dword [esp + 0x110], eax
sub eax, dword [esp + 0x30]
sar ebx, 8
mov edx, ebx
sub edx, ecx
mov ecx, dword [esi + 0x1f3c]
mov dword [esp + 0x118], eax
mov eax, dword [esi + 0x1f34]
add esp, 0xc
cmp ebx, eax
mov dword [esp + 0x108], edx
jge 0x584e19
mov ebx, eax
jmp 0x584e1f
cmp ebx, ecx
jle 0x584e1f
mov ebx, ecx
mov ecx, dword [esi + 0x1f38]
mov edx, dword [esp + 0x104]
cmp edx, ecx
jl 0x584e3a
mov ecx, dword [esi + 0x1f40]
cmp edx, ecx
jle 0x584e41
mov dword [esp + 0x104], ecx
mov ecx, dword [esp + 0x108]
cmp ecx, eax
jl 0x584e56
mov eax, dword [esi + 0x1f3c]
cmp ecx, eax
jle 0x584e5d
mov dword [esp + 0x108], eax
mov ecx, dword [esp + 0x10c]
mov eax, dword [esi + 0x1f38]
cmp ecx, eax
jl 0x584e78
mov eax, dword [esi + 0x1f40]
cmp ecx, eax
jle 0x584e7f
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x104]
mov edx, dword [esp + 0x98]
push 8
push 8
push ecx
mov eax, 0x10
push ebx
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x84]
push eax
mov eax, dword [esi + 0x4cd0]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x12c]
push edx
call eax
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
push 8
push 8
push ecx
push edx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x118]
push eax
lea ecx, [esp + 0xf4]
push ecx
mov ecx, dword [esi + 0x4cd0]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x154]
push eax
call ecx
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x58]
add esp, 0x40
push edx
mov edx, dword [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 0x30]
push edx
mov edx, dword [esi + 0x4ce4]
push eax
lea ecx, [esp + 0x124]
push 0x10
push ecx
call edx
mov ecx, dword [esp + 0xa4]
mov edx, dword [esi + 0x4b4c]
push 0x10
lea eax, [esp + 0x130]
push eax
push 0x10
push ecx
call edx
add esp, 0x2c
cmp eax, 0x10000000
jge 0x584f4f
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10c]
or eax, dword [esp + 0x108]
or eax, dword [esp + 0x104]
or eax, ebx
je 0x585024
push 8
push 8
push 0
mov eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xa4]
push 0
push eax
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esi + 0x4cd0]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x12c]
push eax
call ecx
mov edx, dword [esp + 0x108]
push 8
push 8
push 0
push 0
push edx
mov ebx, eax
lea eax, [esp + 0xf4]
push eax
mov eax, dword [esi + 0x4cd0]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x154]
push edx
call eax
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x58]
add esp, 0x40
push ecx
push edx
mov edx, dword [esi + 0x4ce4]
push eax
mov eax, dword [esp + 0x20]
push eax
push ebx
lea ecx, [esp + 0x124]
push 0x10
push ecx
call edx
mov ecx, dword [esp + 0xa4]
mov edx, dword [esi + 0x4b4c]
push 0x10
lea eax, [esp + 0x130]
push eax
push 0x10
push ecx
call edx
add esp, 0x2c
cmp dword [esp + 0x1c], eax
jle 0x585024
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
add eax, 1
test eax, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x38], eax
jle 0x5851dc
mov edx, dword [ebp + 0x1c]
lea ecx, [esp + 0x58]
lea eax, [esp + 0xa8]
sub edx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], edx
jmp 0x585064
mov edx, dword [esp + 0x24]
xor eax, eax
mov word [esp + 0x100], ax
mov word [esp + 0x102], ax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + eax*4 + 0x58]
lea eax, [esp + eax*4 + 0x58]
xor ebx, ebx
cmp dword [edx + eax], ebx
mov dword [esp + 0x54], ecx
je 0x58519d
mov eax, dword [esi + 0x9dc]
mov edx, dword [eax + 0x43c]
sub edx, 1
cmp dword [esp + 0x34], edx
jge 0x5850ca
mov eax, dword [ecx + 4]
mov dword [esp + 0x100], eax
mov ebx, 1
mov eax, dword [esi + 0x9dc]
mov edx, dword [eax + 0x440]
sub edx, 1
cmp dword [esp + 0x40], edx
jge 0x58512b
mov eax, dword [esp + 0x20]
mov edx, dword [ecx + eax*4]
mov dword [esp + ebx*4 + 0x100], edx
mov edx, dword [esp + 0x34]
add ebx, 1
test edx, edx
jle 0x585106
mov eax, dword [ecx + eax*4 - 4]
mov dword [esp + ebx*4 + 0x100], eax
add ebx, 1
mov eax, dword [esi + 0x9dc]
mov eax, dword [eax + 0x43c]
sub eax, 1
cmp edx, eax
jge 0x58512b
mov edx, dword [esp + 0x20]
mov eax, dword [ecx + edx*4 + 4]
mov dword [esp + ebx*4 + 0x100], eax
add ebx, 1
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x104]
add eax, 0xffffffb8
push ecx
lea edx, [esp + 0x104]
add eax, 0x40
push edx
push eax
lea eax, [esp + 0x114]
call fcn.0057a600
push 0
push ebx
lea eax, [esp + 0x114]
push eax
mov eax, dword [esp + 0x2c]
add eax, 0xffffffb8
push eax
push esi
call fcn.005ad960
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
add ecx, 0xfffffffe
mov dword [eax], ecx
mov eax, dword [eax + 4]
add esp, 0x20
test eax, eax
je 0x585189
mov edx, dword [esp + 0x14]
add ecx, 5
mov dword [edx], ecx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + edx*4 + 0x4c]
mov ecx, dword [esp + 0x14]
jmp 0x5851ae
mov ecx, dword [ecx]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [esp + edx*4 + 0x4c]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp dword [esp + 0x1c], eax
jl 0x5851c2
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0x50
add eax, 1
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
jl 0x585060
cmp dword [esp + 0x2c], 0
je 0x5852dc
mov eax, dword [esp + 0xac]
test eax, eax
jne 0x5851ff
cmp dword [esp + 0xfc], eax
je 0x5852d1
push 8
mov ecx, 0x10
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ecx
movsx ecx, word [esp + 0xb2]
push 8
push ecx
movsx edx, ax
mov eax, dword [esp + 0xa4]
push edx
push eax
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esi + 0x4cd0]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x12c]
push eax
call ecx
movsx edx, word [esp + 0x11e]
mov ecx, dword [esp + 0x108]
push 8
push 8
push edx
mov ebx, eax
movsx eax, word [esp + 0x128]
push eax
push ecx
lea edx, [esp + 0xf4]
push edx
mov edx, dword [esi + 0x4cd0]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x154]
push ecx
call edx
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x60]
add esp, 0x40
push ecx
push edx
mov edx, dword [esi + 0x4ce4]
push eax
mov eax, dword [esp + 0x24]
push eax
push ebx
lea ecx, [esp + 0x124]
push 0x10
push ecx
call edx
mov ecx, dword [esp + 0xa4]
mov edx, dword [esi + 0x4b4c]
push 0x10
lea eax, [esp + 0x130]
push eax
push 0x10
push ecx
call edx
add eax, 5
add esp, 0x2c
cmp dword [esp + 0x1c], eax
jle 0x5852d1
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x2c], 0
jne 0x5855b6
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x1228], 0
jne 0x585519
mov eax, dword [eax + 0x7c]
lea edi, [eax + edi - 1]
mov eax, dword [esp + 0x3c]
mov ecx, edi
sub ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x117], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x11b], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x11f], edx
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x123], edx
movzx ecx, byte [ecx + 0x10]
mov byte [esp + 0x127], cl
movzx edx, byte [edi]
mov byte [esp + 0x137], dl
movzx ecx, byte [edi + eax]
mov byte [esp + 0x157], cl
movzx edx, byte [edi + eax*2]
mov byte [esp + 0x177], dl
lea ecx, [edi + eax*2]
movzx edx, byte [eax + ecx]
mov byte [esp + 0x197], dl
movzx ecx, byte [edi + eax*4]
lea edx, [edi + eax*4]
mov byte [esp + 0x1b7], cl
movzx ecx, byte [eax + edx]
lea edx, [eax + eax*2]
mov byte [esp + 0x1d7], cl
movzx ecx, byte [edi + edx*2]
lea edx, [eax*8]
sub edx, eax
mov byte [esp + 0x1f7], cl
mov al, byte [edx + edi]
mov byte [esp + 0x217], al
mov eax, dword [esi + 0x4ca8]
test eax, eax
je 0x5853f0
lea ecx, [esp + 0x100]
push ecx
mov ecx, dword [esi + 0x3008]
lea edx, [esp + 0x13c]
push edx
push ecx
call eax
mov eax, dword [esi + 0x4a4c]
lea edx, [esp + 0x144]
push edx
call eax
mov ecx, dword [esi + 0x3008]
mov eax, dword [esi + 0x4b4c]
push 0x10
push ecx
lea edx, [esp + 0x150]
push 0x20
push edx
call eax
add esp, 0x20
mov dword [esp + 0x10c], eax
jmp 0x585443
xor edi, edi
lea ebx, [esi + 0x4a40]
jmp 0x585400
mov edx, dword [ebx]
lea ecx, [esp + 0x138]
push ecx
call edx
mov eax, dword [esi + 0x3008]
mov edx, dword [esi + 0x4b4c]
push 0x10
push eax
lea ecx, [esp + 0x144]
push 0x20
push ecx
call edx
mov dword [esp + edi*4 + 0x114], eax
add edi, 1
add esp, 0x14
add ebx, 4
cmp edi, 4
jl 0x585400
mov eax, dword [esp + 0x10c]
mov ecx, dword [esp + 0x108]
cmp ecx, eax
mov edx, ecx
jl 0x585452
mov edx, eax
mov ebx, dword [esp + 0x104]
cmp ebx, edx
jge 0x585461
mov edx, ebx
jmp 0x585469
cmp ecx, eax
mov edx, ecx
jl 0x585469
mov edx, eax
mov edi, dword [esp + 0x100]
cmp edi, edx
jl 0x58548c
cmp ecx, eax
mov edx, ecx
jl 0x58547c
mov edx, eax
cmp ebx, edx
jge 0x585484
mov edi, ebx
jmp 0x58548c
cmp ecx, eax
mov edi, ecx
jl 0x58548c
mov edi, eax
mov edx, dword [esi + 0x4abc]
push 0xf
push 0xf
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x144]
push ecx
call edx
add esp, 0x10
lea ebx, [esi + 0x4a68]
mov dword [esp + 0x20], 6
lea esp, [esp]
mov edx, dword [ebx]
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x13c]
push ecx
call edx
mov eax, dword [esi + 0x3008]
mov edx, dword [esi + 0x4b4c]
push 0x10
push eax
lea ecx, [esp + 0x148]
push 0x20
push ecx
call edx
add esp, 0x18
cmp edi, eax
jl 0x5854f8
mov edi, eax
add ebx, 4
sub dword [esp + 0x20], 1
jne 0x5854c0
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x122c]
mov edx, dword [esp + 0x44]
add edi, 5
mov word [eax + edx*2], di
jmp 0x58552b
mov ecx, dword [esp + 0x44]
mov eax, dword [eax + 0x122c]
movzx edi, word [eax + ecx*2]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
xor edx, edx
cmp edi, eax
setl dl
test edx, edx
mov dword [esp + 0x38], edx
je 0x585540
mov eax, edi
cmp dword [esp + 0x34], 0
jle 0x585571
mov edx, dword [esi + 0x9dc]
mov ebx, dword [edx + 0x43c]
sub ebx, 1
cmp dword [esp + 0x34], ebx
jge 0x585571
mov ebx, dword [esp + 0x40]
test ebx, ebx
jle 0x585571
mov edx, dword [edx + 0x440]
sub edx, 1
cmp ebx, edx
jl 0x58558c
mov esi, dword [esi + 0x9dc]
mov edx, 2
cmp dword [esi + 0x43c], edx
jle 0x58558c
cmp dword [esi + 0x440], edx
jg 0x5855ba
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x38]
add dword [ecx + edx*4 + 0xcc0], esi
add dword [ecx + 0x29c], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.004e3dc3
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e3dc3
mov esp, ebp
pop ebp
ret