Function at 0x40bc0c
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.0040e4dc
mov ebp, dword [esp + 0x27c]
mov eax, dword [ebp]
mov ebx, dword [esp + 0x280]
add esp, 0xc
cmp eax, 2
jl 0x40bcd4
mov ecx, dword [ebx]
mov esi, dword [ecx + 4]
mov edi, 0x437ba8
mov ecx, 0xe
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40bcd4
lea eax, [eax*4 + 0x24]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.0040e53c
add esp, 8
test eax, eax
je 0x40bec4
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 0x40bcad
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 0x40bc9c
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.0040b12c
mov esi, dword [esp + 0x2c]
add esp, 0x10
test esi, esi
je 0x40bd00
push 0x3d
push esi
call fcn.0042955c
add esp, 8
inc eax
mov esi, eax
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40bd19
push 0x3d
push edi
call fcn.0042955c
add esp, 8
inc eax
mov dword [0x51d07c], eax
xor eax, eax
test esi, esi
setne al
xor ecx, ecx
test edi, edi
setne cl
mov dword [esp + 0x38], 0x437b9c
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 0x40bd5b
mov edx, dword [eax + 4]
add eax, 4
inc ecx
test edx, edx
jne 0x40bd4c
mov dword [esp + 0x34], ecx
mov edx, dword [ebp]
push 0x20
push edx
lea eax, [esp + 0x28]
push 4
push eax
call fcn.0040e79c
add esp, 0x10
test al, al
jne 0x40bec4
test esi, esi
je 0x40bdca
push 0
lea ecx, [esp + 0x38]
push ecx
push esi
push 0x435d58
push 0x435d58
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0040b45c
add esp, 0x1c
test eax, eax
mov dword [esp + 0x18], eax
jl 0x40bec4
jle 0x40be9e
push esi
push 0x437b70
push 0x51ae68
call fcn.004291d4
add esp, 0xc
jmp 0x40bec4
mov ebx, dword [esp + 0x268]
push ebx
call fcn.0040d2ec
add esp, 4
test eax, eax
je 0x40be07
push 0
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x28]
push edx
lea edi, [esp + 0x40]
call fcn.0040bbbc
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
jl 0x40bec4
jmp 0x40be97
push 0x200
lea eax, [esp + 0x68]
push eax
call dword [0x434044]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x28]
push eax
lea edi, [esp + 0x40]
call fcn.0040bbbc
add esp, 0xc
test eax, eax
jne 0x40bec4
mov eax, dword [0x4433a4]
test eax, eax
mov esi, 0x4433a4
je 0x40be97
lea esp, [esp]
mov eax, dword [esi]
cmp byte [eax], 0
je 0x40be67
mov ebx, dword [esp + 0x268]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x28]
push edx
jmp 0x40be7d
mov ebx, dword [0x51d07c]
test ebx, ebx
je 0x40be8d
push 0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edi, [esp + 0x40]
call fcn.0040bbbc
add esp, 0xc
test eax, eax
jl 0x40bec4
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x40be4c
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.0040e53c
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40bedd
push 0x437b3c
push 0x51ae68
call fcn.004291d4
add esp, 8
push 1
call fcn.00429194
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 0x40bf31
mov esi, dword [eax + 4]
mov edi, 0x437b28
mov ecx, 0x11
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40bf31
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 0x40bf5a
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.0040e85c
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x40bfeb
mov edx, dword [ebx]
mov eax, dword [edx]
push eax
push 0x437aec
call fcn.00428f06
mov eax, dword [ebp]
mov esi, 1
add esp, 8
cmp eax, esi
jle 0x40bfd7
lea esp, [esp]
mov ecx, dword [ebx]
mov edx, dword [ecx + esi*4]
push edx
push 0x437ae8
call fcn.00428f06
mov eax, dword [ebp]
add esp, 8
inc esi
cmp esi, eax
jl 0x40bfbc
push 0x435d58
call fcn.00428f6c
add esp, 4
push 0
call fcn.00429194
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret