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

Disassembly:
sub esp, 0x64
mov eax, dword [0xa56e3c]
push ebx
mov ebx, ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x6c]
push ebp
push esi
push edi
mov ecx, dword [ecx + 0x24]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ecx
movsx eax, word [esp + 0x2a]
movsx edx, cx
shl eax, 9
add eax, edx
js 0x54920a
cmp eax, 0x40000
jge 0x54920a
mov edx, dword [0x81a938]
mov eax, dword [edx + eax*4]
test eax, eax
je 0x54920a
mov dword [esp + 0x14], eax
jmp 0x549218
mov dword [0xa57614], ecx
mov dword [esp + 0x14], 0xa575f0
push 0
push 0
lea ecx, [esp + 0x64]
mov byte [esp + 0x1b], 0
call fcn.0042d4a0
mov eax, dword [esp + 0x7c]
mov edi, dword [0xa54794]
mov ebp, dword [0xa3aa90]
and eax, 7
mov dword [esp + 0x5c], vtable.DynamicVectorClass_class_Cell_.0
mov dword [esp + 0x70], 0xa
lea ecx, [eax*4 + 0x839d80]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
add ax, word [edx]
mov cx, ax
mov ax, word [esp + 0x16]
add ax, word [edx + 2]
mov word [esp + 0x1c], cx
movsx ecx, cx
mov word [esp + 0x1e], ax
mov edx, dword [esp + 0x1c]
movsx eax, ax
shl eax, 9
add eax, ecx
mov dword [esp + 0x48], edx
js 0x5492bf
cmp eax, 0x40000
jge 0x5492bf
mov ecx, dword [0x81a938]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x5492bf
mov dword [esp + 0x14], eax
jmp 0x5492cd
mov dword [0xa57614], edx
mov dword [esp + 0x14], 0xa575f0
mov ecx, dword [esp + 0x14]
mov edx, dword [0xa54780]
mov eax, dword [esp + 0x7c]
mov esi, dword [ecx + 0x38]
sub esi, edx
inc esi
cmp eax, 2
jne 0x549511
cmp esi, dword [0xa55c40]
jne 0x5492ff
cmp byte [ecx + 0x11a], 4
je 0x549721
cmp esi, dword [0xa3a8a0]
jne 0x549314
cmp byte [ecx + 0x11a], 4
je 0x549753
cmp esi, edi
je 0x549338
lea edx, [edi + 3]
cmp esi, edx
je 0x549338
lea eax, [edi + 4]
cmp esi, eax
je 0x549338
lea edx, [edi + 1]
cmp esi, edx
je 0x549338
lea eax, [edi + 2]
cmp esi, eax
jne 0x5494fa
cmp byte [ecx + 0x11a], 4
jne 0x5494fa
mov ecx, dword [0xa54780]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [edi + ecx - 1]
lea eax, [esp + 0x54]
push edx
push eax
mov ecx, ebx
call fcn.0054e3e0
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebx
call fcn.0054d570
mov edi, dword [0xa54794]
mov cl, byte [esp + 0x13]
or cl, al
lea edx, [edi + 4]
mov byte [esp + 0x13], cl
cmp esi, edx
jne 0x5494f4
movsx eax, word [esp + 0x4a]
mov ecx, dword [esp + 0x48]
movsx edx, cx
shl eax, 9
add eax, edx
js 0x5493b0
cmp eax, 0x40000
jge 0x5493b0
mov edx, dword [0x81a938]
mov eax, dword [edx + eax*4]
test eax, eax
jne 0x5493bb
mov dword [0xa57614], ecx
mov eax, 0xa575f0
mov cl, byte [eax + 0x11b]
push 0x839d80
add cl, 4
mov byte [eax + 0x11b], cl
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x50]
call fcn.0042add0
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
movsx eax, word [esp + 0x32]
movsx edx, cx
shl eax, 9
add eax, edx
js 0x549406
cmp eax, 0x40000
jge 0x549406
mov edx, dword [0x81a938]
mov eax, dword [edx + eax*4]
test eax, eax
jne 0x549411
mov dword [0xa57614], ecx
mov eax, 0xa575f0
mov cl, byte [eax + 0x11b]
push 0x839d90
add cl, 4
mov byte [eax + 0x11b], cl
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
call fcn.0042add0
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
movsx eax, word [esp + 0x32]
movsx edx, cx
shl eax, 9
add eax, edx
js 0x54945c
cmp eax, 0x40000
jge 0x54945c
mov edx, dword [0x81a938]
mov eax, dword [edx + eax*4]
test eax, eax
jne 0x549467
mov dword [0xa57614], ecx
mov eax, 0xa575f0
mov cl, byte [eax + 0x11b]
add cl, 4
xor edi, edi
mov byte [eax + 0x11b], cl
mov eax, dword [esp + 0x64]
mov esi, 0xfffffffe
mov ecx, dword [esp + 0x48]
lea edx, [edi + ecx]
mov ecx, dword [esp + 0x4a]
add ecx, esi
mov word [esp + 0x20], dx
mov word [esp + 0x22], cx
mov ecx, dword [esp + 0x6c]
cmp ecx, eax
jl 0x5494c8
mov cl, byte [esp + 0x69]
test cl, cl
jne 0x5494ac
test eax, eax
jne 0x5494e2
mov ecx, dword [esp + 0x70]
test ecx, ecx
jle 0x5494e2
mov edx, dword [esp + 0x5c]
add eax, ecx
push 0
push eax
lea ecx, [esp + 0x64]
call dword [edx + 8]
test al, al
je 0x5494de
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x20]
mov eax, ecx
inc ecx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x60]
mov dword [ecx + eax*4], edx
mov eax, dword [esp + 0x64]
inc esi
cmp esi, 3
jl 0x549481
inc edi
cmp edi, 2
jl 0x54947c
mov edi, dword [0xa54794]
mov ebp, dword [0xa3aa90]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x1e
mov dword [esp + 0x18], eax
jl 0x549268
jmp 0x5497ec
cmp eax, 4
jne 0x5494fa
cmp esi, dword [0xa55c28]
jne 0x54952b
cmp byte [ecx + 0x11a], 2
je 0x549783
cmp esi, dword [0xa3afa8]
jne 0x549540
cmp byte [ecx + 0x11a], 2
je 0x5497b3
cmp esi, ebp
je 0x549560
lea eax, [ebp + 3]
cmp esi, eax
je 0x549560
lea edx, [ebp + 4]
cmp esi, edx
je 0x549560
lea eax, [ebp + 2]
cmp esi, eax
je 0x549560
lea edx, [ebp + 1]
cmp esi, edx
jne 0x5494fa
cmp byte [ecx + 0x11a], 2
jne 0x5494fa
mov eax, dword [0xa54780]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [eax + ebp - 1]
lea edx, [esp + 0x54]
push ecx
push edx
mov ecx, ebx
call fcn.0054e3e0
lea eax, [esp + 0x48]
mov ecx, ebx
push eax
call fcn.0054d570
mov cl, byte [esp + 0x13]
mov ebp, dword [0xa3aa90]
or cl, al
mov byte [esp + 0x13], cl
lea ecx, [ebp + 4]
cmp esi, ecx
jne 0x549716
movsx eax, word [esp + 0x4a]
mov ecx, dword [esp + 0x48]
movsx edx, cx
shl eax, 9
add eax, edx
js 0x5495d3
cmp eax, 0x40000
jge 0x5495d3
mov edx, dword [0x81a938]
mov eax, dword [edx + eax*4]
test eax, eax
jne 0x5495de
mov dword [0xa57614], ecx
mov eax, 0xa575f0
mov cl, byte [eax + 0x11b]
push 0x839d88
add cl, 4
mov byte [eax + 0x11b], cl
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x50]
call fcn.0042add0
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
movsx eax, word [esp + 0x32]
movsx edx, cx
shl eax, 9
add eax, edx
js 0x549629
cmp eax, 0x40000
jge 0x549629
mov edx, dword [0x81a938]
mov eax, dword [edx + eax*4]
test eax, eax
jne 0x549634
mov dword [0xa57614], ecx
mov eax, 0xa575f0
mov cl, byte [eax + 0x11b]
push 0x839d98
add cl, 4
mov byte [eax + 0x11b], cl
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x50]
call fcn.0042add0
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
movsx eax, word [esp + 0x32]
movsx edx, cx
shl eax, 9
add eax, edx
js 0x54967f
cmp eax, 0x40000
jge 0x54967f
mov edx, dword [0x81a938]
mov eax, dword [edx + eax*4]
test eax, eax
jne 0x54968a
mov dword [0xa57614], ecx
mov eax, 0xa575f0
mov cl, byte [eax + 0x11b]
add cl, 4
xor edi, edi
mov byte [eax + 0x11b], cl
mov eax, dword [esp + 0x64]
mov esi, 0xfffffffe
mov ecx, dword [esp + 0x48]
lea edx, [esi + ecx]
mov ecx, dword [esp + 0x4a]
add ecx, edi
mov word [esp + 0x24], dx
mov word [esp + 0x26], cx
mov ecx, dword [esp + 0x6c]
cmp ecx, eax
jl 0x5496eb
mov cl, byte [esp + 0x69]
test cl, cl
jne 0x5496cf
test eax, eax
jne 0x549705
mov ecx, dword [esp + 0x70]
test ecx, ecx
jle 0x549705
mov edx, dword [esp + 0x5c]
add eax, ecx
push 0
push eax
lea ecx, [esp + 0x64]
call dword [edx + 8]
test al, al
je 0x549701
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x24]
mov eax, ecx
inc ecx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x60]
mov dword [ecx + eax*4], edx
mov eax, dword [esp + 0x64]
inc esi
cmp esi, 3
jl 0x5496a4
inc edi
cmp edi, 2
jl 0x54969f
jmp 0x5494ee
mov edi, dword [0xa54794]
jmp 0x5494fa
push 0
lea eax, [esp + 0x4c]
push 0
push eax
mov ecx, ebx
call fcn.0054e1f0
lea ecx, [esp + 0x40]
push 0x839d98
push ecx
lea ecx, [esp + 0x50]
call fcn.0042add0
mov edx, dword [eax]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edx
jmp 0x5497e0
push 0
lea ecx, [esp + 0x4c]
push 0
push ecx
mov ecx, ebx
call fcn.0054e1f0
lea edx, [esp + 0x40]
push 0x839d98
push edx
lea ecx, [esp + 0x50]
call fcn.0042add0
mov eax, dword [eax]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
push ecx
jmp 0x5497e1
push 0
lea edx, [esp + 0x4c]
push 0
push edx
mov ecx, ebx
call fcn.0054e1f0
lea eax, [esp + 0x40]
push 0x839d80
push eax
lea ecx, [esp + 0x50]
call fcn.0042add0
mov ecx, dword [eax]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ecx
push edx
jmp 0x5497e1
push 0
lea eax, [esp + 0x4c]
push 0
push eax
mov ecx, ebx
call fcn.0054e1f0
lea ecx, [esp + 0x40]
push 0x839d80
push ecx
lea ecx, [esp + 0x50]
call fcn.0042add0
mov edx, dword [eax]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edx
push eax
mov ecx, ebx
call fcn.0054d570
or byte [esp + 0x13], al
mov edi, dword [esp + 0x18]
cmp edi, 0x1e
jne 0x549810
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], vtable.VectorClass_class_Cell_.0
call fcn.0042cfb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0xc
mov edx, dword [esp + 0x78]
mov ecx, dword [edx + 0x24]
mov dword [esp + 0x78], ecx
movsx eax, word [esp + 0x7a]
movsx esi, cx
shl eax, 9
add eax, esi
js 0x549842
cmp eax, 0x40000
jge 0x549842
mov esi, dword [0x81a938]
mov eax, dword [esi + eax*4]
test eax, eax
je 0x549842
mov esi, eax
jmp 0x54984d
mov dword [0xa57614], ecx
mov esi, 0xa575f0
mov ebp, dword [esp + 0x80]
test ebp, ebp
je 0x5498b5
mov eax, dword [edx + 0x24]
movsx ecx, ax
shl ecx, 8
add ecx, 0x80
mov dword [esp + 0x78], eax
movsx eax, word [esp + 0x7a]
mov dword [esp + 0x50], ecx
movsx ecx, byte [edx + 0x11b]
imul ecx, dword [0xa57828]
shl eax, 8
add eax, 0x80
lea edx, [esp + 0x40]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x58], ecx
mov ecx, dword [0x821c8c]
push edx
push eax
call fcn.00697ec0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
test edi, edi
jle 0x5499bf
mov edi, dword [esp + 0x18]
mov bl, 5
mov eax, dword [esi + 0x38]
mov ecx, dword [0xa54780]
sub eax, ecx
mov ecx, dword [0xa54794]
inc eax
cmp eax, ecx
jne 0x5498e2
test byte [esi + 0x11a], 1
je 0x54995c
cmp eax, dword [0xa3aa90]
jne 0x5498f2
cmp byte [esi + 0x11a], bl
jb 0x54995c
mov eax, dword [esp + 0x7c]
push 0x9c
cmp eax, 2
jne 0x54992e
call fcn.0076d5a7
add esp, 4
test eax, eax
je 0x54995c
mov ecx, dword [esi + 0x24]
lea edx, [esp + 0x80]
mov dword [esp + 0x80], ecx
mov ecx, dword [0xa1e0fc]
push 0xffffffffffffffff
push edx
mov edx, dword [ecx + 0x3b4]
jmp 0x549954
call fcn.0076d5a7
add esp, 4
test eax, eax
je 0x54995c
mov ecx, dword [esi + 0x24]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ecx
mov ecx, dword [0xa1e0fc]
push 0xffffffffffffffff
push edx
mov edx, dword [ecx + 0x3b8]
push edx
mov ecx, eax
call fcn.005d2d00
mov eax, dword [esi + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
add ax, word [edx]
mov cx, ax
mov ax, word [esp + 0x26]
add ax, word [edx + 2]
mov word [esp + 0x78], cx
movsx ecx, cx
mov word [esp + 0x7a], ax
mov edx, dword [esp + 0x78]
movsx eax, ax
shl eax, 9
add eax, ecx
mov dword [esp + 0x48], edx
js 0x5499ad
cmp eax, 0x40000
jge 0x5499ad
mov ecx, dword [0x81a938]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x5499ad
mov esi, eax
jmp 0x5499b8
mov dword [0xa57614], edx
mov esi, 0xa575f0
dec edi
jne 0x5498c3
test ebp, ebp
je 0x549a86
movsx eax, word [esp + 0x4a]
mov esi, dword [esp + 0x48]
mov edx, eax
movsx ecx, si
shl edx, 9
add edx, ecx
js 0x5499f1
cmp edx, 0x40000
jge 0x5499f1
mov edi, dword [0x81a938]
mov edx, dword [edi + edx*4]
test edx, edx
jne 0x5499fc
mov dword [0xa57614], esi
mov edx, 0xa575f0
movsx edx, byte [edx + 0x11b]
imul edx, dword [0xa57828]
shl eax, 8
shl ecx, 8
add eax, 0x80
mov dword [esp + 0x58], edx
add ecx, 0x80
mov dword [esp + 0x54], eax
lea edx, [esp + 0x40]
lea eax, [esp + 0x50]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x821c8c]
push edx
push eax
call fcn.00697ec0
mov eax, dword [ebp]
mov edx, dword [esp + 0x40]
mov ecx, dword [ebp + 4]
cmp eax, edx
mov esi, eax
jl 0x549a4e
mov esi, edx
add esi, 0xffffffc0
mov edi, ecx
mov dword [ebp], esi
mov esi, dword [esp + 0x44]
cmp ecx, esi
jl 0x549a60
mov edi, esi
sub eax, edx
add edi, 0xffffffc0
cdq
xor eax, edx
mov dword [ebp + 4], edi
sub eax, edx
add eax, 0x80
mov dword [ebp + 8], eax
mov eax, ecx
sub eax, esi
cdq
xor eax, edx
sub eax, edx
add eax, 0x80
mov dword [ebp + 0xc], eax
mov al, byte [esp + 0x13]
test al, al
je 0x549a97
mov ecx, dword [esp + 0x2c]
call fcn.0054bf10
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x549aad
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00565540
mov eax, dword [esp + 0x60]
mov dword [esp + 0x5c], vtable.VectorClass_class_Cell_.0
test eax, eax
je 0x549ace
mov cl, byte [esp + 0x69]
test cl, cl
je 0x549ace
push eax
call fcn.0076d2d5
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0xc