Function at 0x49ae10
Capabilities:
Terminate process

Disassembly:
mov eax, 0x134c
call fcn.0044fbe0
mov edx, dword [esp + 0x1354]
mov eax, dword [edx + 0x508]
push ebx
mov ebx, dword [edx + 0x510]
push ebp
push esi
mov esi, dword [edx + 0x504]
xor ebp, ebp
cmp esi, ebp
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], ebp
jle 0x49ae59
mov ecx, esi
mov eax, 0xffffff38
lea edi, [esp + 0x14c]
rep stosd dword es:[edi], eax
test esi, esi
jle 0x49ae9f
mov ecx, esi
mov eax, 0xffffff38
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
jle 0x49ae79
mov ecx, esi
xor eax, eax
lea edi, [esp + 0x354]
rep stosd dword es:[edi], eax
test esi, esi
jle 0x49ae9f
mov ecx, esi
mov eax, 1
lea edi, [esp + 0x250]
rep stosd dword es:[edi], eax
jle 0x49ae9d
mov ecx, esi
or eax, 0xffffffff
lea edi, [esp + 0x458]
rep stosd dword es:[edi], eax
test esi, esi
jne 0x49aecc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1368]
push ebx
push eax
lea ecx, [esp + 0x564]
push ecx
push eax
mov eax, dword [esp + 0x137c]
push 0
push edx
push eax
call fcn.0049b360
add esp, 0x1c
jmp 0x49af2b
lea eax, [esi - 1]
test eax, eax
jle 0x49b2fd
mov esi, edx
lea edi, [esp + 0x55c]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ebx
push ecx
mov ecx, dword [esp + 0x1370]
push edi
push edx
mov edx, dword [esp + 0x137c]
push eax
push ecx
push edx
call fcn.0049b360
mov edx, dword [esp + 0x2c]
add edx, eax
mov eax, dword [esp + 0x3c]
add esp, 0x1c
add edi, 0x38
add esi, 4
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
jne 0x49aee4
mov esi, dword [esp + 0x24]
mov eax, edx
test eax, eax
je 0x49b2fd
mov eax, 0xffffff38
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push ebx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esi - 1]
push edx
lea eax, [esp + 0x56c]
push eax
call fcn.0049b530
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x160], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x50]
add esp, 0x14
cmp esi, 2
mov dword [esp + 0x4c], eax
mov dword [esp + 0x150], eax
mov dword [esp + 0x1c], 2
jle 0x49b1e4
mov ecx, dword [esp + 0x1364]
add ecx, 0x210
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov eax, dword [esp + ecx*4 + 0x354]
mov esi, dword [esp + ecx*4 + 0x250]
mov dword [esp + 0x20], ecx
cmp dword [esp + eax*4 + 0x458], esi
mov dword [esp + 0x44], eax
je 0x49b1b4
mov ecx, dword [esp + 0x1364]
mov edi, dword [ecx + eax*4 + 0x208]
mov ebp, dword [ecx + esi*4 + 0x208]
mov ecx, dword [ebx + eax*4 + 0x344]
mov edx, dword [ebx + esi*4 + 0x344]
push eax
mov dword [esp + eax*4 + 0x45c], esi
lea eax, [esp + 0x4c]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x154]
push ecx
mov dword [esp + 0x24], edx
call fcn.0049b9e0
push esi
lea edx, [esp + 0x58]
mov dword [esp + 0x40], eax
push edx
lea eax, [esp + 0x160]
push eax
call fcn.0049b9e0
mov ecx, dword [esp + 0x48]
add esp, 0x18
cmp ecx, 0xffffffff
mov dword [esp + 0x40], eax
je 0x49b2ba
cmp eax, 0xffffffff
je 0x49b2ba
mov edx, dword [esp + 0x1368]
push ebx
push edx
mov edx, dword [esp + 0x1374]
push edx
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call fcn.0049b7b0
add esp, 0x1c
test eax, eax
je 0x49b1a0
mov ecx, dword [esp + 0x20]
mov eax, 0xffffff38
push ebx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
lea edx, [edi*8]
sub ecx, edi
sub edx, edi
push ecx
lea eax, [esp + edx*8 + 0x56c]
push eax
call fcn.0049b530
push ebx
mov edi, eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x50]
push edx
lea ecx, [eax*8]
sub ebp, eax
sub ecx, eax
lea edx, [esp + ecx*8 + 0x57c]
push ebp
push edx
call fcn.0049b530
mov edx, dword [esp + 0x5c]
add esp, 0x28
test edi, edi
je 0x49b0f4
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, edx
jmp 0x49b0f8
mov ecx, dword [esp + 0x28]
test eax, eax
je 0x49b104
mov ebp, dword [esp + 0x40]
mov edx, ecx
jmp 0x49b108
mov ebp, dword [esp + 0x18]
test edi, edi
je 0x49b114
test eax, eax
jne 0x49b1a0
mov edi, dword [esp + 0x44]
test edi, edi
mov eax, dword [esp + 0x2c]
mov dword [esp + edi*4 + 0x48], eax
jne 0x49b12b
mov dword [esp + 0x14c], eax
cmp esi, 1
mov eax, dword [esp + 0x10]
mov dword [esp + eax + 0x154], ecx
mov dword [esp + eax + 0x50], edx
mov dword [esp + esi*4 + 0x14c], ebp
jne 0x49b14a
mov dword [esp + 0x4c], ebp
test ecx, ecx
jge 0x49b152
test edx, edx
jl 0x49b1b4
mov edx, dword [esp + 0x20]
lea eax, [edx - 1]
test eax, eax
jl 0x49b176
lea ecx, [esp + eax*4 + 0x250]
cmp dword [ecx], esi
jne 0x49b176
mov ebp, dword [esp + 0x1c]
mov dword [ecx], ebp
dec eax
sub ecx, 4
test eax, eax
jge 0x49b164
mov ecx, dword [esp + 0x24]
lea eax, [edx + 1]
cmp eax, ecx
jge 0x49b1b4
lea ecx, [esp + eax*4 + 0x354]
cmp dword [ecx], edi
jne 0x49b1b4
mov edx, dword [esp + 0x1c]
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
inc eax
add ecx, 4
cmp eax, edx
jl 0x49b188
jmp 0x49b1b4
mov eax, dword [esp + 0x10]
mov ecx, 0xffffff38
mov dword [esp + eax + 0x154], ecx
mov dword [esp + eax + 0x50], ecx
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, 4
add esi, ecx
add edx, ecx
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
jl 0x49afa7
mov esi, ecx
mov ecx, dword [esp + 0x1360]
lea eax, [esi*4]
push eax
push ecx
call fcn.00490830
mov ebp, eax
push 0
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x15c]
push eax
mov dword [esp + 0x2c], ebp
call fcn.0049b9e0
push 1
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x168]
push edx
mov dword [ebp], eax
call fcn.0049b9e0
add esp, 0x20
cmp esi, 2
mov dword [ebp + 4], eax
mov dword [esp + 0x1c], 2
jle 0x49b2fd
mov edx, dword [esp + 0x1364]
lea eax, [ebp + 8]
lea ecx, [ebx + 0x34c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
lea esi, [edx + 0x30c]
mov eax, dword [esi + 0xfc]
mov ecx, dword [esi]
mov edx, dword [ebx + eax*4 + 0x344]
mov edi, dword [ebx + ecx*4 + 0x344]
mov eax, dword [ebp + eax*4]
mov ecx, dword [ebp + ecx*4]
mov ebp, dword [esp + 0x14]
mov ebp, dword [ebp]
push ebp
push ecx
push eax
push edi
push edx
call fcn.0049b310
mov ebp, dword [esp + 0x30]
mov edi, eax
push ebp
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x168]
push ecx
call fcn.0049b9e0
add esp, 0x20
test eax, eax
jl 0x49b2c1
cmp edi, eax
je 0x49b2c1
mov edx, dword [esp + 0x10]
mov dword [edx], eax
jmp 0x49b2cd
push 1
call fcn.004522c7
mov eax, dword [esp + 0x10]
or edi, 0x8000
mov dword [eax], edi
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, 4
add edx, eax
add ecx, eax
inc ebp
add esi, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], ebp
cmp ebp, eax
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jl 0x49b25f
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x134c
ret