Function at 0x401080
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x457f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x46c
push ebx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x370]
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [0x466580]
lea eax, [esp + 0x374]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x488], ebx
call dword [0x467334]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x6d]
mov byte [esp + 0x6c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x370]
push 0x6c
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x74]
push str._s._c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x370]
push 1
push ecx
push edx
call dword [0x4672d0]
mov al, byte [esp + 0xb]
mov edi, 0x4663b4
mov byte [esp + 0x10], al
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ebx
push ecx
push 0x4663b4
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea ecx, [esp + 0x20]
mov byte [esp + 0x47c], 1
call fcn.00415360
push 0xfe
push 0x101
lea ecx, [esp + 0x28]
mov byte [esp + 0x484], 2
call fcn.00414150
push 1
push 0x103
lea ecx, [esp + 0x28]
call fcn.00414150
push 1
push 0x102
lea ecx, [esp + 0x28]
call fcn.00414150
lea ecx, [esp + 0x10]
push ecx
push 0x104
lea ecx, [esp + 0x28]
call fcn.004142e0
push 0x466368
push 0x10a
lea ecx, [esp + 0x28]
call fcn.004142e0
cmp dword [esp + 0x48c], ebx
je 0x4011da
lea edx, [esp + 0x484]
lea ecx, [esp + 0x20]
push edx
push 0x106
call fcn.004142e0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x10], ebx
call fcn.004153b0
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x401342
cmp eax, 4
jle 0x401342
push 0xc
push eax
push ecx
call fcn.00427280
mov ecx, eax
call fcn.004282b0
push 1
call fcn.00427280
mov ecx, eax
call fcn.004281a0
cmp dword [0x467390], ebx
je 0x40133b
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x41]
mov edx, dword [0x462220]
rep stosd dword es:[edi], eax
mov ecx, dword [0x46221c]
push ebp
stosw word es:[edi], ax
mov ax, word [0x462224]
push esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], ecx
mov cl, byte [0x462226]
push 1
lea edx, [esp + 0x4c]
push 0xb
push edx
mov word [esp + 0x5c], ax
mov byte [esp + 0x5e], cl
call fcn.0040c5e0
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x185]
mov esi, 0x4621f0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xa
lea edi, [esp + 0x184]
rep movsd dword es:[edi], dword [esi]
push 1
lea eax, [esp + 0x188]
push 0x29
push eax
movsb byte es:[edi], byte [esi]
call fcn.0040c5e0
lea edi, [esp + 0x190]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x74]
lea edx, [esp + 0x178]
mov byte [esp + ecx + 0x178], 0x20
mov byte [esp + ecx + 0x179], bl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x178]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x178]
push ebx
push eax
call dword [0x467390]
pop esi
pop ebp
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
lea ecx, [esp + 0x20]
mov byte [esp + 0x47c], 1
call fcn.004153a0
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x401377
mov al, byte [ecx - 1]
cmp al, bl
je 0x40136d
cmp al, 0xff
je 0x40136d
dec al
mov byte [ecx - 1], al
jmp 0x401377
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x488]
mov dword [esp + 0x14], ebx
cmp ecx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
je 0x4013aa
mov al, byte [ecx - 1]
cmp al, bl
je 0x4013a0
cmp al, 0xff
je 0x4013a0
dec al
mov byte [ecx - 1], al
jmp 0x4013aa
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x474]
pop edi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x478
ret