Function at 0x401d30
Capabilities:
Terminate process

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xor ebp, ebp
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x234]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 2
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x130]
and ecx, 3
push 0x40a174
rep movsb byte es:[edi], byte [esi]
push eax
call dword [0x40911c]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x24], ebx
jne 0x401e01
push 0x104
push 0x40d120
push 0xc35c
push ebp
call dword [0x409174]
push 0x40d120
push 0x40a0e0
push 0x40d000
call fcn.0040352a
add esp, 0xc
push ebp
push 0x40a0d4
push 0x40d000
push ebp
call dword [0x409160]
push 1
call fcn.0040374c
lea ecx, [esp + 0x14]
push ecx
push ebp
push 0x40a16c
push ebx
call dword [0x409120]
test eax, eax
je 0x401e6f
push ebp
lea edx, [esp + 0x2c]
push pe_nt_image_headers32
push edx
lea eax, [esp + 0x20]
push 2
push eax
call dword [0x409124]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x16
jbe 0x401e4a
inc dword [0x40cd9c]
jmp 0x401e50
inc dword [0x40cda0]
mov eax, dword [0x40cda4]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
inc eax
push ecx
push edx
mov dword [0x40cda4], eax
call dword [0x409128]
test eax, eax
jne 0x401e17
mov eax, dword [0x40cda4]
lea ecx, [eax*4]
push ecx
call fcn.004039ee
mov edx, dword [0x40cd9c]
mov dword [0x40ac88], eax
lea eax, [edx*4]
push eax
call fcn.004039ee
mov ecx, dword [0x40cda0]
mov dword [0x40ac80], eax
lea edx, [ecx*4]
push edx
call fcn.004039ee
mov dword [0x40ac84], eax
mov eax, dword [0x40cda4]
add esp, 0xc
xor esi, esi
cmp eax, ebp
jle 0x401ee4
push pe_nt_image_headers32
call fcn.004039ee
mov ecx, dword [0x40ac88]
add esp, 4
mov dword [ecx + esi*4], eax
mov eax, dword [0x40cda4]
inc esi
cmp esi, eax
jl 0x401ec4
mov eax, dword [0x40cd9c]
xor esi, esi
cmp eax, ebp
jle 0x401f0f
push pe_nt_image_headers32
call fcn.004039ee
mov edx, dword [0x40ac80]
add esp, 4
mov dword [edx + esi*4], eax
mov eax, dword [0x40cd9c]
inc esi
cmp esi, eax
jl 0x401eef
mov eax, dword [0x40cda0]
xor esi, esi
cmp eax, ebp
jle 0x401f3a
push pe_nt_image_headers32
call fcn.004039ee
mov ecx, dword [0x40ac84]
add esp, 4
mov dword [ecx + esi*4], eax
mov eax, dword [0x40cda0]
inc esi
cmp esi, eax
jl 0x401f1a
lea edx, [esp + 0x14]
push edx
push ebp
push 0x40a16c
push ebx
call dword [0x409120]
test eax, eax
je 0x40202b
mov dword [esp + 0x10], ebp
xor ebx, ebx
push 0
lea eax, [esp + 0x2c]
push pe_nt_image_headers32
push eax
lea ecx, [esp + 0x20]
push 2
push ecx
call dword [0x409124]
lea edx, [esp + 0x28]
push 0x40a160
push edx
call fcn.00403420
add esp, 8
test eax, eax
je 0x40200f
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x16
jbe 0x401fae
mov eax, dword [0x40ac80]
add ebp, 4
mov edx, dword [eax + ebp - 4]
jmp 0x401fbb
mov ecx, dword [0x40ac84]
add ebx, 4
mov edx, dword [ebx + ecx - 4]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [0x40ac88]
mov edx, ecx
mov edi, dword [eax + edi]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add eax, 4
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [0x409128]
test eax, eax
jne 0x401f5a
mov ebx, dword [esp + 0x24]
push ebx
call dword [0x40912c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret