Function at 0x4040d0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4183a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov edi, dword [0x419018]
lea ecx, [esp + 0x3c]
lea eax, [ebp + 0xcc]
push 0
lea esi, [ebp + 0xc8]
push ecx
push eax
push esi
mov dword [esp + 0x4c], 0xc
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 1
call edi
test eax, eax
jne 0x40413e
push 0x41c290
call fcn.0040e21a
add esp, 4
push 0
call fcn.0040e145
lea edx, [esp + 0x3c]
lea ebx, [ebp + 0xd4]
push 0
lea eax, [ebp + 0xd0]
push edx
push ebx
push eax
call edi
test eax, eax
jne 0x40416d
push 0x41c274
call fcn.0040e21a
add esp, 4
push 0
call fcn.0040e145
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0x44
push eax
call dword [0x419014]
mov ecx, dword [esi]
mov eax, dword [ebx]
lea edx, [esp + 0x48]
mov dword [esp + 0x90], ecx
xor edi, edi
push edx
mov ecx, ebp
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], eax
mov word [esp + 0x8c], di
mov dword [esp + 0x88], 0x101
call fcn.00406580
push 0x41c264
mov dword [esp + 0xa8], edi
call dword [0x419010]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x34], esi
jne 0x404200
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa8], 0xffffffff
call fcn.00408720
xor al, al
jmp 0x4044c2
mov al, byte [esp + 0x13]
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00408720
mov edi, 0x41c24c
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
call fcn.00408530
test al, al
je 0x40425a
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
mov esi, 0x41c24c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408490
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, edi
mov byte [esp + 0xa4], 1
mov dword [esp + 0x38], edi
jne 0x404275
mov eax, 0x419160
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push ecx
push edx
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
call fcn.00407400
mov ecx, dword [0x419158]
mov byte [esp + 0xa4], 2
push ecx
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00408200
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0xa8], 1
call fcn.00408720
mov eax, dword [esp + 0x18]
cmp eax, edi
jne 0x4042c6
mov eax, 0x419160
push eax
push esi
call dword [0x419024]
mov ecx, dword [esp + 0x4c]
mov dword [ebp + 0xe8], eax
cmp ecx, edi
jne 0x4042e1
mov ecx, 0x419160
lea edx, [ebp + 0xd8]
push edx
lea edx, [esp + 0x5c]
push edx
push edi
push edi
push edi
push 1
push edi
push edi
push edi
push ecx
call eax
test eax, eax
jne 0x40445c
mov eax, dword [ebp + 0xc8]
mov esi, dword [0x41903c]
cmp eax, 0xffffffff
je 0x404314
push eax
call esi
mov eax, dword [ebp + 0xd4]
cmp eax, 0xffffffff
je 0x404322
push eax
call esi
mov eax, dword [ebp + 0xcc]
cmp eax, 0xffffffff
je 0x404330
push eax
call esi
mov eax, dword [ebp + 0xd0]
cmp eax, 0xffffffff
je 0x40433e
push eax
call esi
mov al, byte [esp + 0x13]
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00408720
mov edi, 0x41c234
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x28]
push ebx
call fcn.00408530
test al, al
je 0x404396
mov edi, dword [esp + 0x28]
mov ecx, ebx
mov edx, ecx
mov esi, 0x41c234
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], ebx
mov byte [eax + ebx], 0
mov cl, byte [esp + 0x24]
sub esp, 0x10
mov esi, esp
xor edi, edi
mov dword [esp + 0x44], esp
push edi
mov byte [esi], cl
mov ecx, esi
mov byte [esp + 0xb8], 3
call fcn.00408720
mov edx, dword [0x419158]
lea eax, [esp + 0x34]
push edx
push edi
push eax
mov ecx, esi
call fcn.00408200
mov ecx, ebp
call fcn.004054d0
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x4043f6
mov al, byte [ecx - 1]
test al, al
je 0x4043ec
cmp al, 0xff
je 0x4043ec
dec al
mov byte [ecx - 1], al
jmp 0x4043f6
dec ecx
push ecx
call fcn.0040d580
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], edi
cmp ecx, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
je 0x404426
mov al, byte [ecx - 1]
test al, al
je 0x40441c
cmp al, 0xff
je 0x40441c
dec al
mov byte [ecx - 1], al
jmp 0x404426
dec ecx
push ecx
call fcn.0040d580
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x18], edi
cmp ecx, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x404458
mov al, byte [ecx - 1]
test al, al
je 0x40444e
cmp al, 0xff
je 0x40444e
dec al
mov byte [ecx - 1], al
xor al, al
jmp 0x4044c2
dec ecx
push ecx
call fcn.0040d580
add esp, 4
xor al, al
jmp 0x4044c2
push edi
push edi
push ebp
push 0x4044e0
push edi
push edi
call dword [0x419040]
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x404490
mov al, byte [ecx - 1]
test al, al
je 0x404486
cmp al, 0xff
je 0x404486
dec al
mov byte [ecx - 1], al
jmp 0x404490
dec ecx
push ecx
call fcn.0040d580
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x18], edi
cmp ecx, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x4044c0
mov al, byte [ecx - 1]
test al, al
je 0x4044b6
cmp al, 0xff
je 0x4044b6
dec al
mov byte [ecx - 1], al
jmp 0x4044c0
dec ecx
push ecx
call fcn.0040d580
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x98
ret