Function at 0x402e50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x1fc
cmp eax, 0xffffffff
jne 0x402e69
mov dword [esp + 0x20], 0xa
jmp 0x402e7f
mov edx, dword [0x44644c]
lea ecx, [eax + eax*2]
add edx, eax
lea ecx, [ecx + ecx*8]
mov eax, dword [edx + ecx*8 + 0x14]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x204]
push ebx
push ebp
push esi
lea eax, [ecx + ecx*4]
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
lea eax, [eax + eax*8]
push edi
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ecx
mov ecx, dword [0x446224]
lea ebx, [eax + eax*2]
mov edx, dword [ebx + ecx + 0x99]
push edx
call fcn.0040d4f0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x21c]
add esp, 4
cmp eax, esi
je 0x402ecf
mov dword [eax], 0xffffffff
mov eax, dword [0x446224]
lea edx, [esp + 0x14]
push edx
lea ecx, [ebx + eax]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], ecx
call fcn.00409840
add esp, 8
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x4033c0
mov edi, dword [esp + 0x210]
mov dword [esp + 0x24], str._dedi
cmp edi, esi
jne 0x402f14
mov dword [esp + 0x24], 0x4205f0
mov ecx, dword [esp + 0x18]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x7c]
push 0x4205ec
push edx
call ebp
add esp, 0xc
test edi, edi
je 0x402f49
mov eax, dword [0x4466dc]
lea ecx, [esp + 0x3c]
push eax
push 0x4205e8
push ecx
call ebp
add esp, 0xc
jmp 0x402f6d
mov edx, dword [0x4200a4]
lea eax, [esp + 0x3c]
push edx
push 0x4205e8
push eax
call ebp
mov eax, dword [0x4200bc]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x402f75
mov dword [esp + 0x1c], 0
push 0x446228
lea ecx, [esp + 0xcc]
push 0x4205e4
push ecx
call ebp
mov edx, dword [0x446224]
add esp, 0xc
test byte [ebx + edx + 0x81], 1
je 0x402fcc
lea edi, [esp + 0xc8]
or ecx, 0xffffffff
xor eax, eax
push str._crypt
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x50], 0x4205d4
mov esi, 1
lea eax, [esp + ecx + 0xcc]
push eax
call ebp
add esp, 8
mov ecx, dword [0x446224]
mov eax, dword [ebx + ecx + 0x81]
test ah, 1
je 0x40300a
mov dword [esp + esi*4 + 0x4c], str._compress
lea edi, [esp + 0xc8]
or ecx, 0xffffffff
xor eax, eax
inc esi
push 0x4205bc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0xcc]
push edx
call ebp
add esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x40306c
mov ecx, dword [0x4200c0]
lea edi, [esp + 0xc8]
push ecx
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str._firewall__ld__ld
lea edx, [esp + ecx + 0xd4]
push edx
call ebp
mov eax, dword [0x4200c0]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x1e4]
push str._ld__ld
push edx
call ebp
add esp, 0x20
mov dword [esp + esi*4 + 0x4c], str._firewall
inc esi
lea eax, [esp + 0x1cc]
mov dword [esp + esi*4 + 0x4c], eax
inc esi
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x78]
push ecx
push edx
push eax
lea edi, [esp + 0xd4]
or ecx, 0xffffffff
xor eax, eax
push str._s__s__inactivity__s_
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esp + ecx + 0xd8]
push ecx
call ebp
mov eax, dword [0x446708]
add esp, 0x14
test eax, eax
je 0x403116
lea edx, [esp + 0xc8]
push edx
push 0x420560
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
call dword [sym.imp.MSVCRT.dll_getchar]
movsx ecx, word [0x420092]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00409ab0
add esp, 8
test eax, eax
push 0
jg 0x4031d8
push 1
call fcn.00402bc0
mov eax, dword [esp + 0x1c]
push eax
call fcn.004092e0
push 0x73c
call fcn.0040b400
mov dword [esp + 0x20], eax
call fcn.0040a3b0
push eax
push 1
call fcn.00402bc0
add esp, 0x18
jmp 0x4033c0
mov edx, dword [esp + 0x60]
xor eax, eax
cmp esi, 5
mov edi, dword [esp + 0x5c]
setle al
dec eax
xor ecx, ecx
and eax, edx
cmp esi, 4
setle cl
mov ebp, dword [esp + 0x58]
dec ecx
and ecx, edi
xor edx, edx
cmp esi, 3
push eax
setle dl
dec edx
xor eax, eax
and edx, ebp
cmp esi, 2
setle al
push ecx
mov ecx, dword [esp + 0x5c]
dec eax
push edx
mov edx, dword [esp + 0x5c]
and eax, ecx
xor ecx, ecx
cmp esi, 1
setle cl
dec ecx
mov edi, dword [esp + 0x58]
and ecx, edx
xor edx, edx
test esi, esi
setle dl
dec edx
push eax
and edx, edi
push ecx
lea eax, [esp + 0x50]
push edx
mov edx, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x94]
push str._inactivity
push ecx
push edx
push 0x446228
call fcn.00418300
add esp, 0x2c
cmp eax, 0xffffffff
jne 0x4030c3
push 0
push 1
call fcn.00402bc0
push 0x714
call fcn.0040b400
mov dword [esp + 0x1c], eax
call fcn.0040a3b0
push eax
push 1
call fcn.00402bc0
mov eax, dword [esp + 0x28]
push eax
call fcn.004092e0
add esp, 0x18
jmp 0x4033c0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x8c]
push ecx
push 0
push edx
call fcn.00409870
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x403209
mov eax, dword [esp + 0x14]
push eax
call fcn.004092e0
add esp, 4
jmp 0x4033c0
mov eax, dword [esp + 0x210]
mov ebx, dword [0x44646c]
test eax, eax
je 0x403222
mov ebp, dword [0x446458]
jmp 0x403257
mov edx, dword [esp + 0x28]
xor ebp, ebp
mov ecx, dword [edx + 0xc5]
test ecx, ecx
jle 0x403251
mov eax, dword [edx + 0xbd]
lea esi, [eax + eax*2]
lea eax, [eax + esi*4]
lea eax, [ebx + eax*8]
cmp dword [eax], 0x191
je 0x403251
inc ebp
add eax, 0x68
cmp ebp, ecx
jl 0x403241
add ebp, dword [edx + 0xbd]
lea ecx, [ebp + ebp*2]
lea esi, [esp + 0x88]
lea edx, [ebp + ecx*4]
mov ecx, 0x10
lea ebx, [ebx + edx*8]
lea edi, [ebx + 0x20]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x446218]
mov ecx, dword [esp + 0x214]
mov dword [ebx + 0x1c], eax
xor esi, esi
or eax, 0xffffffff
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x64], esi
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov edx, dword [esp + 0x14]
push edx
call fcn.004092e0
mov edi, dword [esp + 0x214]
add esp, 4
cmp edi, esi
je 0x4032b8
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
jmp 0x4032c0
mov dword [esp + 0x20], 0xa
lea ecx, [esp + 0x20]
push ecx
push 5
push ebx
call fcn.00404f60
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x403301
lea edx, [esp + 0x74]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x3e]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x24]
push 5
push ecx
push ebx
call fcn.00404fe0
add esp, 0x20
mov esi, eax
test edi, edi
je 0x403317
lea edx, [esp + 0x88]
push edx
call fcn.0040a010
add esp, 4
jmp 0x403327
test esi, esi
jne 0x4033a0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4033a2
mov edx, dword [esp + 0x28]
mov dword [ebx], 0x194
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x18], eax
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x10], ecx
mov eax, dword [edx + 0x8d]
test edi, edi
mov dword [ebx + 0x14], eax
jne 0x403379
test ebp, ebp
jl 0x403373
cmp ebp, dword [0x446464]
jge 0x403373
mov eax, dword [0x446468]
mov ecx, ebp
shr ecx, 5
mov esi, 1
lea eax, [eax + ecx*4]
mov ecx, ebp
and ecx, 0x1f
shl esi, cl
or dword [eax], esi
inc dword [edx + 0xc9]
mov eax, dword [esp + 0x218]
test eax, eax
je 0x403386
mov dword [eax], ebp
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0040d4f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret
mov eax, esi
push eax
call fcn.00401140
lea edx, [esp + 0x8c]
push edx
call fcn.0040a010
add esp, 8
test esi, esi
je 0x4033c0
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040d4f0
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret