Function at 0x56d9bc
Capabilities:
Terminate process

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], 0
call fcn.0056cc5c
push 0
lea eax, [esp + 0x50]
push 0x200
push eax
call fcn.0056b84c
mov ebp, dword [esp + 0x84]
mov edx, dword [ebp]
mov ebx, dword [esp + 0x88]
add esp, 0xc
cmp edx, 2
jl 0x56da81
mov ecx, dword [ebx]
mov esi, dword [ecx + 4]
mov edi, 0x10089784
mov ecx, 0xe
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x56da81
lea ecx, [edx*4 + 0x24]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.0056b93c
add esp, 8
test eax, eax
je 0x56db22
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 0x56da5d
mov edi, edi
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 0x56da4c
mov dword [edx + ecx*4 - 4], 0
dec dword [ebp]
mov edi, eax
mov dword [ebx], edx
mov ecx, 8
lea esi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x74]
mov esi, dword [eax]
xor ecx, ecx
test esi, esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0x10089778
mov dword [esp + 0x30], eax
je 0x56daac
mov esi, dword [eax + 4]
add eax, 4
inc ecx
test esi, esi
jne 0x56da9d
mov dword [esp + 0x28], ecx
push 0x20
push edx
lea edx, [esp + 0x40]
push 4
push edx
call fcn.0056c69c
add esp, 0x10
test al, al
jne 0x56db22
lea eax, [esp + 0x4c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
push 0x1000ed90
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push ebx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x80]
push ebp
push edx
call fcn.0056d71c
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [ebp]
add eax, ecx
lea ecx, [eax*4 + 0x24]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.0056b93c
add esp, 0x20
test eax, eax
mov dword [esp + 0x78], eax
jne 0x56db3b
push 0x100896b0
push 0x1019c808
call fcn.005b4c99
add esp, 8
push 1
call fcn.005b6138
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 + 0x3c]
mov esi, dword [esp + 0x38]
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 0x56db8f
mov esi, dword [eax + 4]
mov edi, 0x10089764
mov ecx, 0x11
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x56db8f
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 0x56dbb8
mov esi, dword [ebx]
lea ecx, [eax*4 - 4]
mov eax, dword [esp + 0x3c]
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 + 0x3c]
mov edi, dword [esp + 0x78]
mov dword [edx + ecx*4], 0
mov esi, dword [ebp]
mov eax, dword [esp + 0x3c]
add esi, eax
mov dword [ebp], esi
mov dword [ebx], edx
mov ecx, 8
lea esi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x38]
push ecx
call fcn.0056c86c
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x56dc4b
mov edx, dword [ebx]
mov eax, dword [edx]
push eax
push 0x10089728
call fcn.005b3fe7
mov eax, dword [ebp]
mov esi, 1
add esp, 8
cmp eax, esi
jle 0x56dc37
lea ebx, [ebx]
mov ecx, dword [ebx]
mov edx, dword [ecx + esi*4]
push edx
push 0x10089724
call fcn.005b3fe7
mov eax, dword [ebp]
add esp, 8
inc esi
cmp esi, eax
jl 0x56dc1c
push 0x10088443
call fcn.005b6abd
add esp, 4
push 0
call fcn.005b6138
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret