Function at 0x409b40
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea ebp, [ebx + 0x14c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebp
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x409b90
mov ecx, edi
mov edi, dword [ebp + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [ebx + 0x154]
lea ebp, [ebx + 0x15c]
inc esi
mov ecx, ebp
push esi
call fcn.00407560
test esi, esi
jl 0x409bb1
cmp esi, dword [ebp + 4]
jg 0x409bb1
mov dword [ebp], esi
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x154]
mov ebp, dword [ebp + 8]
lea esi, [ebx + 0x168]
push eax
push ebp
mov ecx, esi
call fcn.004145d0
mov ecx, esi
call fcn.00414810
lea esi, [ebx + 0x17c]
mov dword [esp + 0x18], eax
mov dword [esi], 0
mov ebp, dword [esi + 4]
cmp eax, ebp
jle 0x409c8f
test ebp, ebp
jne 0x409c18
mov ebp, 1
cmp ebp, eax
jge 0x409c22
add ebp, ebp
cmp ebp, eax
jl 0x409c1c
lea edi, [ebp*4]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x10], edx
jne 0x409c43
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
mov dword [esi + 4], ebp
jle 0x409c78
mov ecx, dword [esi + 8]
inc eax
mov edx, dword [ecx + eax*4 - 4]
mov ecx, dword [esp + 0x10]
mov dword [ecx + eax*4 - 4], edx
mov ecx, dword [esi]
cmp eax, ecx
jl 0x409c62
mov edx, dword [esi + 8]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.004075f0
mov edi, dword [ebx + 0x194]
mov ebp, dword [ebx + 0x190]
cmp edi, edi
mov dword [esp + 0x10], edi
je 0x409cc1
push edi
mov ecx, ebp
call fcn.0040a930
mov eax, dword [esp + 0x10]
add edi, 0x10
add ebp, 0x10
cmp edi, eax
jne 0x409cab
mov eax, dword [ebx + 0x194]
mov edi, ebp
cmp ebp, eax
mov dword [esp + 0x10], eax
je 0x409ce5
push 0
mov ecx, edi
call fcn.0040a910
mov eax, dword [esp + 0x10]
add edi, 0x10
cmp edi, eax
jne 0x409cd1
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x194], ebp
xor ebp, ebp
xor edi, edi
test eax, eax
jle 0x409d46
push edi
mov ecx, ebx
call fcn.00409e80
xor ecx, ecx
cmp edi, ecx
jl 0x409d11
cmp edi, dword [esi]
jge 0x409d11
mov edx, dword [esi + 8]
lea eax, [edx + edi*4]
jmp 0x409d1c
mov dword [0x56f814], ecx
mov eax, 0x56f814
cmp dword [eax], ebp
jle 0x409d3d
cmp edi, ecx
jl 0x409d30
cmp edi, dword [esi]
jge 0x409d30
mov eax, dword [esi + 8]
lea eax, [eax + edi*4]
jmp 0x409d3b
mov dword [0x56f814], ecx
mov eax, 0x56f814
mov ebp, dword [eax]
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x409cf7
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8