Function at 0x401630
Capabilities:
Set current directory

Disassembly:
mov eax, 0x4f68
call fcn.00403c60
mov eax, dword [0x40e28c]
push ebx
mov dword [esp + 0x4f68], eax
mov eax, dword [0x40f05c]
push esi
push eax
lea ecx, [esp + 0x30]
push 0x40c3ac
push ecx
call fcn.00403ba6
fild dword [0x40f058]
add esp, 0xc
xor ebx, ebx
fmul dword [0x40c3a8]
fcom dword [0x40c3a4]
fnstsw ax
test ah, 0x41
jne 0x4016cc
call fcn.00403ca0
mov ecx, eax
cmp ecx, ebx
mov dword [0x4103f8], ecx
jle 0x4016ee
cmp ecx, 5
jl 0x40169a
cmp ecx, 0x14
jle 0x401c45
mov eax, ecx
cdq
mov esi, 0xa
idiv esi
cmp edx, 1
jne 0x401c1b
mov edx, dword [0x40c39c]
mov ax, word [0x40c3a0]
mov dword [esp + 0xc], edx
mov dl, byte [0x40c3a2]
mov byte [esp + 0x12], dl
jmp 0x401c55
fcomp dword [0x40d3ac]
fnstsw ax
test ah, 0x41
jne 0x4016e6
mov ecx, 1
mov dword [0x4103f8], ecx
jmp 0x40169a
xor ebx, ebx
mov dword [0x4103f8], ebx
lea ecx, [esp + 0x4c]
push 0x40c380
push ecx
call fcn.00403ba6
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x40f6d8
call esi
push str.html
call esi
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x150]
push eax
push 0x40c370
call fcn.00402ee0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push 0x40f4b0
lea eax, [esp + 0x2870]
push eax
mov byte [esp + ecx + 0x163], bl
lea ecx, [esp + 0x164]
push str.GGGG
push ecx
call fcn.004011d0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x2888]
push str.NNNN
push edx
call fcn.004011d0
lea eax, [esp + 0x3c]
push eax
push 0x40f328
lea ecx, [esp + 0x2898]
push ecx
lea edx, [esp + 0x18c]
push str.CCCC
push edx
call fcn.004011d0
add esp, 0x48
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x154]
push edx
lea eax, [esp + 0x2868]
push str.TTTT
push eax
call fcn.004011d0
lea ecx, [esp + 0x1c]
push ecx
push 0x40ed40
lea edx, [esp + 0x2878]
push edx
lea eax, [esp + 0x16c]
push str.MOREGAMES
push eax
call fcn.004011d0
lea ecx, [esp + 0x30]
push ecx
push 0x40ef4c
lea edx, [esp + 0x17c]
push edx
lea eax, [esp + 0x2890]
push str.PPPP
push eax
call fcn.004011d0
mov eax, dword [0x4103f8]
add esp, 0x3c
cmp eax, ebx
mov eax, 0x40c338
jg 0x401827
mov eax, 0x40c334
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x2864]
push edx
lea eax, [esp + 0x158]
push str.ENABLE
push eax
call fcn.004011d0
lea ecx, [esp + 0x1c]
push ecx
push str.http:__www.nevosoft.ru_advert_wrap_baner.gif
lea edx, [esp + 0x168]
push edx
lea eax, [esp + 0x287c]
push str.ADVERTGIF
push eax
call fcn.004011d0
lea ecx, [esp + 0x30]
push ecx
push str.http:__www.nevosoft.ru_advert_fromwrapper.htm
lea edx, [esp + 0x288c]
push edx
lea eax, [esp + 0x180]
push str.ADVERTURL
push eax
call fcn.004011d0
mov ecx, dword [esp + 0x44]
push ecx
lea edx, [esp + 0x289c]
push edx
push str._nag.htm
call fcn.004029d0
add esp, 0x48
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x150]
push ecx
push 0x40c2fc
call fcn.00402ee0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
push 0x40f4b0
lea ecx, [esp + 0x2870]
push ecx
mov byte [esp + edx + 0x163], bl
lea edx, [esp + 0x164]
push str.GGGG
push edx
call fcn.004011d0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x174]
push edx
lea eax, [esp + 0x2888]
push str.NNNN
push eax
call fcn.004011d0
lea ecx, [esp + 0x3c]
push ecx
push 0x40f328
lea edx, [esp + 0x2898]
push edx
lea eax, [esp + 0x18c]
push str.CCCC
push eax
call fcn.004011d0
add esp, 0x48
lea ecx, [esp + 8]
push ecx
push 0x40ef4c
lea edx, [esp + 0x154]
push edx
lea eax, [esp + 0x2868]
push str.PPPP
push eax
call fcn.004011d0
lea ecx, [esp + 0x1c]
push ecx
push str.http:__www.nevosoft.ru_advert_wrap_baner.gif
lea edx, [esp + 0x2878]
push edx
lea eax, [esp + 0x16c]
push str.ADVERTGIF
push eax
call fcn.004011d0
lea ecx, [esp + 0x30]
push ecx
push str.http:__www.nevosoft.ru_advert_fromwrapper.htm
lea edx, [esp + 0x17c]
push edx
lea eax, [esp + 0x2890]
push str.ADVERTURL
push eax
call fcn.004011d0
mov ecx, dword [esp + 0x44]
push ecx
lea edx, [esp + 0x18c]
push edx
push str._nag2.htm
call fcn.004029d0
add esp, 0x48
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x150]
push ecx
push 0x40c2e4
call fcn.00402ee0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
push 0x40f4b0
lea ecx, [esp + 0x2870]
push ecx
mov byte [esp + edx + 0x163], bl
lea edx, [esp + 0x164]
push str.GGGG
push edx
call fcn.004011d0
lea eax, [esp + 0x28]
push eax
push 0x40ed40
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x2888]
push str.MOREGAMES
push edx
call fcn.004011d0
lea eax, [esp + 0x3c]
push eax
push 0x40efd4
lea ecx, [esp + 0x2898]
push ecx
lea edx, [esp + 0x18c]
push str.CALLANKETA
push edx
call fcn.004011d0
add esp, 0x48
lea eax, [esp + 8]
push eax
push str.http:__www.nevosoft.ru_advert_wrap_baner.gif
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x2868]
push str.ADVERTGIF
push edx
call fcn.004011d0
lea eax, [esp + 0x1c]
push eax
push str.http:__www.nevosoft.ru_advert_fromwrapper.htm
lea ecx, [esp + 0x2878]
push ecx
lea edx, [esp + 0x16c]
push str.ADVERTURL
push edx
call fcn.004011d0
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x2888]
push ecx
push str._nag3.htm
call fcn.004029d0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x184]
push eax
push 0x40c2bc
call fcn.00402ee0
mov ecx, dword [esp + 0x48]
add esp, 0x40
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + ecx + 0x153], bl
lea ecx, [esp + 0x2864]
push ecx
lea edx, [esp + 0x158]
push str.NNNN
push edx
call fcn.004011d0
lea eax, [esp + 0x1c]
push eax
push 0x40f328
lea ecx, [esp + 0x168]
push ecx
lea edx, [esp + 0x287c]
push str.CCCC
push edx
call fcn.004011d0
lea eax, [esp + 0x30]
push eax
push 0x40ef4c
lea ecx, [esp + 0x288c]
push ecx
lea edx, [esp + 0x180]
push str.PPPP
push edx
call fcn.004011d0
lea eax, [esp + 0x44]
push eax
push 0x40f4b0
lea ecx, [esp + 0x190]
push ecx
lea edx, [esp + 0x28a4]
push str.GGGG
push edx
call fcn.004011d0
add esp, 0x50
lea eax, [esp + 8]
push eax
push str.http:__www.nevosoft.ru_advert_wrap_baner.gif
lea ecx, [esp + 0x2864]
push ecx
lea edx, [esp + 0x158]
push str.ADVERTGIF
push edx
call fcn.004011d0
lea eax, [esp + 0x1c]
push eax
push str.http:__www.nevosoft.ru_advert_fromwrapper.htm
lea ecx, [esp + 0x168]
push ecx
lea edx, [esp + 0x287c]
push str.ADVERTURL
push edx
call fcn.004011d0
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x178]
push ecx
push str._wrongkey.htm
call fcn.004029d0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x184]
push eax
push str.ad.htm
call fcn.00402ee0
add esp, 0x40
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x401bff
push eax
lea ecx, [esp + 0x150]
push ecx
push str._ad.htm
call fcn.004029d0
add esp, 0xc
push 0x40f6d8
call esi
mov ecx, dword [esp + 0x4f6c]
pop esi
pop ebx
call fcn.00403b0f
add esp, 0x4f68
ret
cmp edx, 2
jl 0x401c45
cmp edx, 4
jg 0x401c45
mov eax, dword [0x40c294]
mov dx, word [0x40c298]
mov dword [esp + 0xc], eax
mov al, byte [0x40c29a]
mov word [esp + 0x10], dx
mov byte [esp + 0x12], al
jmp 0x401c5a
mov edx, dword [0x40c28c]
mov ax, word [0x40c290]
mov dword [esp + 0xc], edx
mov word [esp + 0x10], ax
lea edx, [esp + 0xc]
push edx
push ecx
lea eax, [esp + 0x54]
push 0x40c240
push eax
call fcn.00403ba6
add esp, 0x10
jmp 0x401700