Function at 0x52c072
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.00529022
mov ebp, dword [esp + 0x27c]
mov eax, dword [ebp]
mov ebx, dword [esp + 0x280]
add esp, 0xc
cmp eax, 2
jl 0x52c13a
mov ecx, dword [ebx]
mov esi, dword [ecx + 4]
mov edi, 0x4451d8
mov ecx, 0xe
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x52c13a
lea eax, [eax*4 + 0x24]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00529112
add esp, 8
test eax, eax
je 0x52c32a
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 0x52c113
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 0x52c102
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.0052b592
mov esi, dword [esp + 0x2c]
add esp, 0x10
test esi, esi
je 0x52c166
push 0x3d
push esi
call fcn.0054fa72
add esp, 8
inc eax
mov esi, eax
mov edi, dword [esp + 0x14]
test edi, edi
je 0x52c17f
push 0x3d
push edi
call fcn.0054fa72
add esp, 8
inc eax
mov dword [0x529c40], eax
xor eax, eax
test esi, esi
setne al
xor ecx, ecx
test edi, edi
setne cl
mov dword [esp + 0x38], 0x4451cc
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 0x52c1c1
mov edx, dword [eax + 4]
add eax, 4
inc ecx
test edx, edx
jne 0x52c1b2
mov dword [esp + 0x34], ecx
mov edx, dword [ebp]
push 0x20
push edx
lea eax, [esp + 0x28]
push 4
push eax
call fcn.0052ea32
add esp, 0x10
test al, al
jne 0x52c32a
test esi, esi
je 0x52c230
push 0
lea ecx, [esp + 0x38]
push ecx
push esi
push 0x44352c
push 0x44352c
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0052b8c2
add esp, 0x1c
test eax, eax
mov dword [esp + 0x18], eax
jl 0x52c32a
jle 0x52c304
push esi
push 0x4451a0
push 0x527f90
call fcn.00550085
add esp, 0xc
jmp 0x52c32a
mov ebx, dword [esp + 0x268]
push ebx
call fcn.0052e642
add esp, 4
test eax, eax
je 0x52c26d
push 0
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x28]
push edx
lea edi, [esp + 0x40]
call fcn.0052c022
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
jl 0x52c32a
jmp 0x52c2fd
push 0x200
lea eax, [esp + 0x68]
push eax
call dword [0x44205c]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x28]
push eax
lea edi, [esp + 0x40]
call fcn.0052c022
add esp, 0xc
test eax, eax
jne 0x52c32a
mov eax, dword [0x45049c]
test eax, eax
mov esi, 0x45049c
je 0x52c2fd
lea esp, [esp]
mov eax, dword [esi]
cmp byte [eax], 0
je 0x52c2cd
mov ebx, dword [esp + 0x268]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x28]
push edx
jmp 0x52c2e3
mov ebx, dword [0x529c40]
test ebx, ebx
je 0x52c2f3
push 0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edi, [esp + 0x40]
call fcn.0052c022
add esp, 0xc
test eax, eax
jl 0x52c32a
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x52c2b2
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.00529112
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x52c343
push 0x44516c
push 0x527f90
call fcn.00550085
add esp, 8
push 1
call fcn.0055064d
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 0x52c397
mov esi, dword [eax + 4]
mov edi, 0x445158
mov ecx, 0x11
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x52c397
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 0x52c3c0
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.0052ec02
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x52c451
mov edx, dword [ebx]
mov eax, dword [edx]
push eax
push 0x44511c
call fcn.0054f28c
mov eax, dword [ebp]
mov esi, 1
add esp, 8
cmp eax, esi
jle 0x52c43d
lea esp, [esp]
mov ecx, dword [ebx]
mov edx, dword [ecx + esi*4]
push edx
push 0x445118
call fcn.0054f28c
mov eax, dword [ebp]
add esp, 8
inc esi
cmp esi, eax
jl 0x52c422
push 0x44352c
call fcn.0055155e
add esp, 4
push 0
call fcn.0055064d
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret