Function at 0x401ff7
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
and dword [ebp - 0x90], 0
lea eax, [0x403094]
mov ecx, ebx
inc ecx
mul ecx
mov dword [ebp - 0x94], eax
mov edi, eax
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x8c]
mov eax, ebx
shl eax, cl
mov esi, edx
add esi, eax
or edi, edi
jne 0x40215a
add byte [eax], al
retf 0x5d
mov eax, dword [edi]
mov dword [ebp - 0x98], eax
add eax, ebx
xor eax, 0x5dac3752
mov dword [esi], eax
add edi, 4
add esi, 4
cmp dword [edi], 0
jne 0x402143
lea edi, [ebp - 0x8c]
push ebx
lea eax, [0x402ea4]
lea ecx, [0x402ea4]
mov edx, ebx
sar edx, cl
mov ecx, eax
sub ecx, edx
push ecx
call fcn.004022f5
mov dword [0x403140], eax
push ebx
lea eax, [0x402e98]
mov edx, ebx
dec edx
and eax, edx
push eax
call fcn.004022f5
add esp, 0x10
mov dword [0x403138], eax
xor esi, esi
or esi, esi
jne 0x4021b1
push edi
call dword [0x403138]
mov dword [ebp - 4], eax
jmp 0x4021ce
push edi
push dword [ebp - 4]
call dword [0x403140]
mov dword [ebp - 0x98], eax
mov edx, dword [ebp + 0xc]
mov ecx, eax
or ecx, ebx
mov dword [edx + esi*4], ecx
jmp 0x4021ce
inc edi
cmp byte [edi], 0
jne 0x4021cd
cmp byte [edi], 0
je 0x4022e1
add byte [edi + ebx*2], bl
add byte [eax], al
pop edi
add byte [eax], al
cmp bl, byte [edi]
add byte [eax], al
add byte [eax], al
add byte [edi], dl
add byte [eax], al
add byte [ebx], 0
add byte [eax - 0x7fffff8c], al
jae 0x4021fb
add byte [eax], al
jle 0x40225d
add byte [eax], al
cwde
pop edx
add byte [eax], al
push edx
pop edx
add byte [eax], al
jb 0x402269
add byte [eax], al
push 0x5a
add byte [eax], al
pushal
pop edx
add byte [eax], al
dec eax
pop edx
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov dl, 0x5a
add byte [eax], al
add byte [eax], al
add byte [eax], al
xchg esi, eax
pop edi
add byte [eax], al
sbb byte [edi], 0
jo 0x402292
add byte [eax], al
add byte [eax], al
add byte [eax], al
out dx, al
add al, 0x6d
insd dword es:[edi], dx
jae 0x4022a5
je 0x402242
add byte [edx], ch
pop edi
pop eax
arpl word [eax + 0x74], si
inc esi
imul ebp, dword [esp + esi*2 + 0x65], 0x4de0072
insd dword es:[edi], dx
popal
insb byte es:[edi], dx
insb byte es:[edi], dx
outsd dx, dword [esi]
arpl word [eax], ax
add byte [esi + 0x65726604], ah
jb 0x4022c5
add byte gs:[eax], al
aad 1
pop edi
imul ebp, dword [esi + 0x69], 0x72657474
insd dword es:[edi], dx
je 0x4022df
jb 0x4022db
add byte [ecx], al
add dword [edi + 0x61], ebx
insd dword es:[edi], dx
jae 0x4022dd
pop edi
js 0x4022e3
je 0x40227c
add byte [ebp + 0x73], ch
jbe 0x4022e4
jb 0x4022f7
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [eax], al
pop ecx
add dword [edi + 0x65], ebx
js 0x4022f2
jo 0x402306
pop edi
push 0x6c646e61
jb 0x4022cf
pop edi
arpl word [edi + 0x6d], bp
insd dword es:[edi], dx
outsd dx, dword [esi]
outsb dx, byte [esi]
add byte [ebx + 5], bl
push edi
imul ebp, dword [esi + 0x53], 0x64416d71
push esp
outsd dx, dword [esi]
push ebx
je 0x402325
popal
insd dword es:[edi], dx
add byte [esi + 0x74], ch
insb byte es:[edi], dx
insb byte es:[edi], dx
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [esi + 5], cl
insb byte es:[edi], dx
jae 0x40233a
je 0x402339
jb 0x402334
insb byte es:[edi], dx
outsb dx, byte gs:[esi]
push edi
add byte [eax], al
ljmp 0x6946
inc edi
je 0x402319
imul ebp, dword [ebp + 0x41], 0x69727474
bound esi, qword [ebp + 0x74]
jmp 0x4022e1
je 0x4022ca
add dword [edi - 0x80], eax
aas
inc edi
cmp byte [edi], 0
add byte [edx + edi*8 + 0x46], dh
je 0x4022e0
inc esi
cmp esi, 6
jl 0x4021a1
pop edi
pop esi
pop ebx
leave
ret
in eax, 0x51
push eax
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
add esi, 2
mov eax, dword [esi]
mov dword [ebp - 4], eax
inc ebp
cld
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
mov ecx, edi
or cl, 1
xor edx, edx
div ecx
mov dword [ebp - 8], eax
clc
mov ebx, eax
add edi, eax
mov esi, edi
mov eax, dword [esi]
mov esi, eax
add esi, dword [ebp + 0xc]
jne 0x402333
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
xor al, 0x53
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
or byte [ebx - 0x17fa9bba], cl
add eax, dword [eax]
add byte [ecx + 0x460bf045], cl
push eax
mov eax, dword [esi + 0x64]
add eax, 0x3e8
mov dword [ebp - 0x10], eax
or eax, dword [esi + 0x64]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0x68]
call dword [0x40312c]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40236c
xor eax, eax
jmp 0x40249f
and dword [ebp - 0x18], 0
push dword [esi + 0x64]
mov eax, dword [fcn.004024a8]
mov edx, dword [0x40318c]
sub edx, eax
push edx
push dword [0x403188]
call fcn.00401926
mov eax, dword [esi + 0x64]
push dword [esi + 0x64]
mov edx, dword [0x403190]
xor edx, eax
push edx
push 0x403194
call fcn.00401926
push dword [esi + 0x64]
push 0x1ce00
push 0x403194
call fcn.00401e3e
add esp, 0x24
cmp dword [esi + 0x64], 0
jne 0x40249d
mov eax, dword [0x403138]
mov dword [esi + 8], eax
mov eax, dword [0x403140]
mov dword [esi + 0xc], eax
lea eax, [fcn.004024a8]
mov dword [ebp - 0x24], eax
mov edi, eax
mov eax, dword [esi + 0x64]
mov ecx, edi
or cl, 1
xor edx, edx
div ecx
mov dword [ebp - 0x2c], eax
mov ebx, eax
add ebx, edi
mov dword [esi + 0x2c], ebx
lea eax, [0x402e88]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x64]
mov edx, dword [ebp - 0x30]
mov ecx, edx
or cl, 1
mul ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
sub eax, edx
mov dword [esi + 0x30], eax
lea eax, [0x402c29]
mov dword [ebp - 0x20], eax
cmp dword [esi + 0x64], 0
je 0x402431
mov ebx, eax
add ebx, eax
jmp 0x402434
mov ebx, dword [ebp - 0x20]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x5c], 0
mov edi, dword [0x403184]
mov eax, dword [esi + 0x64]
mov ecx, edi
or cl, 1
cdq
idiv ecx
add edi, eax
mov dword [esi + 0x58], edi
and dword [ebp - 0x1c], 0
jmp 0x402478
mov edi, dword [ebp - 0x1c]
mov ebx, dword [esi + 0x64]
mov ecx, ebx
mov edx, edi
sar edx, cl
mov ecx, ebx
shl edi, cl
mov bl, byte [edi + 0x403144]
mov byte [edx + esi + 0x38], bl
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, 0x3f
jae 0x40248a
cmp byte [eax + 0x403144], 0
jne 0x40245a
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi + 0x38], 0
inc eax
mov dword [esi + 0x58], eax
jmp 0x40249d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4