Function at 0x842872
Capabilities:
Terminate process

Disassembly:
sub esp, 0x254
push ebx
push ebp
push esi
push edi
push 0
lea eax, [esp + 0x48]
push 0x200
push eax
mov byte [esp + 0x1f], 0
mov dword [esp + 0x24], 0
call fcn.00841732
mov ebp, dword [esp + 0x27c]
mov eax, dword [ebp]
mov ebx, dword [esp + 0x280]
add esp, 0xc
cmp eax, 2
jl 0x84293a
mov ecx, dword [ebx]
mov esi, dword [ecx + 4]
mov edi, 0x6386b0
mov ecx, 0xe
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x84293a
lea eax, [eax*4 + 0x24]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00841822
add esp, 8
test eax, eax
je 0x842b2a
mov ecx, dword [ebx]
mov ecx, dword [ecx]
lea edx, [eax + 0x20]
mov dword [edx], ecx
mov esi, dword [ebp]
mov ecx, 2
cmp esi, ecx
jbe 0x842913
lea esp, [esp]
mov esi, dword [ebx]
mov esi, dword [esi + ecx*4]
mov dword [edx + ecx*4 - 4], esi
mov esi, dword [ebp]
inc ecx
cmp ecx, esi
jb 0x842902
mov dword [edx + ecx*4 - 4], 0
dec dword [ebp]
mov edi, eax
mov dword [ebx], edx
mov ecx, 8
lea esi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x254
ret
lea edx, [esp + 0x14]
push edx
mov edx, dword [ebx]
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00841d92
mov esi, dword [esp + 0x2c]
add esp, 0x10
test esi, esi
je 0x842966
push 0x3d
push esi
call fcn.009263e2
add esp, 8
inc eax
mov esi, eax
mov edi, dword [esp + 0x14]
test edi, edi
je 0x84297f
push 0x3d
push edi
call fcn.009263e2
add esp, 8
inc eax
mov dword [0x75fa18], eax
xor eax, eax
test esi, esi
setne al
xor ecx, ecx
test edi, edi
setne cl
mov dword [esp + 0x38], 0x6386a4
add eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x26c]
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
je 0x8429c1
mov edx, dword [eax + 4]
add eax, 4
inc ecx
test edx, edx
jne 0x8429b2
mov dword [esp + 0x34], ecx
mov edx, dword [ebp]
push 0x20
push edx
lea eax, [esp + 0x28]
push 4
push eax
call fcn.00841ac2
add esp, 0x10
test al, al
jne 0x842b2a
test esi, esi
je 0x842a30
push 0
lea ecx, [esp + 0x38]
push ecx
push esi
push 0x5df350
push 0x5df350
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.008420c2
add esp, 0x1c
test eax, eax
mov dword [esp + 0x18], eax
jl 0x842b2a
jle 0x842b04
push esi
push 0x638678
push 0x75a7d0
call fcn.00924278
add esp, 0xc
jmp 0x842b2a
mov ebx, dword [esp + 0x268]
push ebx
call fcn.008494f2
add esp, 4
test eax, eax
je 0x842a6d
push 0
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x28]
push edx
lea edi, [esp + 0x40]
call fcn.00842822
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
jl 0x842b2a
jmp 0x842afd
push 0x200
lea eax, [esp + 0x68]
push eax
call dword [0x5df174]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x28]
push eax
lea edi, [esp + 0x40]
call fcn.00842822
add esp, 0xc
test eax, eax
jne 0x842b2a
mov eax, dword [0x67eb08]
test eax, eax
mov esi, 0x67eb08
je 0x842afd
lea esp, [esp]
mov eax, dword [esi]
cmp byte [eax], 0
je 0x842acd
mov ebx, dword [esp + 0x268]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x28]
push edx
jmp 0x842ae3
mov ebx, dword [0x75fa18]
test ebx, ebx
je 0x842af3
push 0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edi, [esp + 0x40]
call fcn.00842822
add esp, 0xc
test eax, eax
jl 0x842b2a
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x842ab2
mov ebx, dword [esp + 0x274]
mov eax, dword [esp + 0x24]
mov edx, dword [ebp]
add edx, eax
lea eax, [edx*4 + 0x24]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00841822
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x842b43
push 0x638644
push 0x75a7d0
call fcn.00924278
add esp, 8
push 1
call fcn.00924238
lea edx, [eax + 0x20]
mov eax, dword [ebx]
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
lea edi, [edx + 4]
rep movsd dword es:[edi], dword [esi]
sub dword [ebp], eax
mov esi, dword [ebx]
shl eax, 2
add esi, eax
mov dword [ebx], esi
cmp dword [ebp], 2
mov eax, esi
jl 0x842b97
mov esi, dword [eax + 4]
mov edi, 0x638630
mov ecx, 0x11
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x842b97
mov eax, dword [ebp]
dec eax
mov dword [ebp], eax
mov eax, dword [ebx]
add eax, 4
mov byte [esp + 0x13], 1
mov dword [ebx], eax
mov eax, dword [ebp]
test eax, eax
je 0x842bc0
mov esi, dword [ebx]
lea ecx, [eax*4 - 4]
mov eax, dword [esp + 0x24]
lea edi, [edx + eax*4 + 4]
mov eax, ecx
shr ecx, 2
add esi, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
add ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov dword [edx + ecx*4], 0
mov esi, dword [ebp]
mov eax, dword [esp + 0x24]
add esi, eax
mov dword [ebp], esi
mov dword [ebx], edx
mov ecx, 8
lea esi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x20]
push ecx
call fcn.00841c92
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x842c51
mov edx, dword [ebx]
mov eax, dword [edx]
push eax
push 0x6385f4
call fcn.00926cd6
mov eax, dword [ebp]
mov esi, 1
add esp, 8
cmp eax, esi
jle 0x842c3d
lea esp, [esp]
mov ecx, dword [ebx]
mov edx, dword [ecx + esi*4]
push edx
push 0x6385f0
call fcn.00926cd6
mov eax, dword [ebp]
add esp, 8
inc esi
cmp esi, eax
jl 0x842c22
push 0x5df350
call fcn.00926d3c
add esp, 4
push 0
call fcn.00924238
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret