Function at 0x4022e7
Capabilities:
Create directory
Create process on windows
Get common file path
Hide graphical window

Disassembly:
push ebp
mov eax, 1
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
cmp dword [ebp + 0xc], 0x110
mov ebx, dword [ebp + 8]
je 0x403327
ja 0x40233b
cmp dword [ebp + 0xc], 5
je 0x4032f4
ja 0x402328
cmp dword [ebp + 0xc], 1
je 0x403327
cmp dword [ebp + 0xc], 2
je 0x402388
jmp case.default.0x4024af
cmp dword [ebp + 0xc], 0x10
je 0x40258f
cmp dword [ebp + 0xc], 0x100
jmp 0x40235e
cmp dword [ebp + 0xc], 0x203
je 0x40261d
ja 0x402369
cmp dword [ebp + 0xc], 0x112
jbe 0x402651
cmp dword [ebp + 0xc], 0x115
je 0x4023f8
jmp case.default.0x4024af
cmp dword [ebp + 0xc], 0x20a
je 0x4023f8
cmp dword [ebp + 0xc], 0x400
je 0x40253a
jmp case.default.0x4024af
cmp dword [0x479b20], ebx
jne 0x4023a4
mov dword [0x479b20], 0
call fcn.0041361e
jmp case.default.0x4024af
sub esp, 0xc
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x402532
cmp edi, 0x2e7
jle 0x402674
cmp edi, 0x31c
jle 0x4026e1
sub edi, 0xf3c
cmp edi, 0xf
ja case.default.0x4024af
cmp dword [section..bss], edi
jle case.default.0x4024af
movsx eax, word [edi + edi + 0x451020]
shl eax, 0x10
or eax, 5
mov dword [ebp + 0x10], eax
cmp dword [0x479b20], ebx
jne case.default.0x4024af
push eax
push eax
push 1
push ebx
call dword [sym.imp.USER32.dll_GetScrollPos]
cmp dword [ebp + 0xc], 0x100
mov edi, eax
pop eax
pop edx
jne 0x40248d
mov eax, dword [ebp + 0x14]
sar eax, 0x10
and eax, 0x7f
cmp eax, 0x49
je case.0x4024af.2
jg 0x40244f
cmp eax, 0x1c
je 0x402463
mov esi, 0xfffffff8
cmp eax, 0x48
je 0x4024da
dec eax
je 0x4032db
jmp case.default.0x4024af
cmp eax, 0x50
je case.0x4024af.1
mov esi, 0x3c
cmp eax, 0x51
je 0x4024da
jmp case.default.0x4024af
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je case.0x4026c4.710
push ecx
push ecx
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
bt eax, 0xc
pop esi
pop edi
jb case.default.0x4024af
jmp case.0x4026c4.710
cmp dword [ebp + 0xc], 0x20a
jne 0x4024a0
mov esi, dword [ebp + 0x10]
sar esi, 0x12
neg esi
jmp 0x4024da
cmp word [ebp + 0x10], 5
movzx eax, word [ebp + 0x10]
ja case.default.0x4024af
jmp dword [eax*4 + 0x43e1ec]
mov esi, 0x3c
jmp 0x4024da
mov esi, dword [ebp + 0x10]
shr esi, 0x10
sub esi, edi
jmp 0x4024da
mov esi, 0xffffffc4
jmp 0x4024da
mov esi, 8
jmp 0x4024da
mov esi, 0xfffffff8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push ebx
call dword [sym.imp.USER32.dll_GetScrollRange]
mov eax, esi
add eax, edi
jns 0x4024f9
neg edi
xor eax, eax
mov esi, edi
jmp 0x402506
mov edx, dword [ebp - 0x2c]
cmp edx, eax
jge 0x402506
sub eax, edx
sub esi, eax
mov eax, edx
push 1
neg esi
push eax
push 1
push ebx
call dword [sym.imp.USER32.dll_SetScrollPos]
push 7
push 0
push 0
push 0
push 0
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_ScrollWindowEx]
sub esp, 0xc
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
add esp, 0xc
jmp case.default.0x4024af
cmp dword [ebp + 0x14], 0x202
jne 0x402607
cmp dword [0x42e050], 7
jne 0x4025a9
cmp dword [ebp + 0x10], 0x202
jne 0x4025a9
push 0
push str.Small_Server
push dword [0x433a04]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x42e050], 4
push eax
push eax
push 0x42e04c
push dword [0x4632a4]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
pop eax
pop edx
jmp 0x4025a9
test byte [0x46c974], 0x10
jne case.default.0x4024af
test byte [0x46c978], 0x10
je case.default.0x4024af
cmp dword [0x42e49c], 0
je 0x4025d4
push esi
push esi
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x42e048]
mov dword [0x42e49c], 0
pop edi
pop eax
call fcn.00403726
sub esp, 0xc
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
add esp, 0xc
cmp dword [ebp + 0xc], 0x10
jne 0x402647
push 0x24
push str.Small_Server
push dword [0x4339c4]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne case.default.0x4024af
jmp 0x402647
cmp dword [ebp + 0x14], 0x205
jne 0x402647
sub esp, 0xc
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
add esp, 0xc
sub esp, 0xc
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
sub esp, 0xc
push 0
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 0x4a
push dword [0x479b28]
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
add esp, 0x18
mov eax, 1
jmp 0x403327
movzx edi, word [ebp + 0x10]
lea eax, [edi - 0x320]
cmp eax, 0xc1b
ja 0x4023b4
mov edx, dword [ebp + 0x10]
and edx, 7
add edx, 0x2bc
jmp 0x4026b5
cmp edi, 0x2bb
jg 0x4026b3
cmp edi, 0x172
jg case.default.0x4024af
cmp edi, 0x157
jg 0x4026cb
cmp edi, 0x7e
je 0x4031cb
cmp edi, 0x96
je 0x4032db
cmp edi, 0x7d
je 0x402547
jmp case.default.0x4024af
mov edx, edi
sub edx, 0x2bc
cmp edx, 0x2b
ja case.default.0x4024af
jmp dword [edx*4 + 0x43e204]
lea eax, [edi - 0x158]
cmp eax, 0x1a
ja case.default.0x4024af
jmp dword [eax*4 + 0x43e2b4]
cmp edi, 0x30b
jle 0x4026ff
lea eax, [edi - 0x30c]
cmp eax, 0x10
ja case.default.0x4024af
jmp dword [eax*4 + 0x43e320]
lea eax, [edi - 0x2f8]
cmp eax, 9
ja case.default.0x4024af
jmp dword [eax*4 + 0x43e364]
mov edx, dword [ebp + 0x10]
shr edx, 0x10
cmp edx, 0x200
jne case.default.0x4024af
mov esi, dword [ebp + 0x10]
sar eax, 3
push 0
mov dword [ebp - 0x30], eax
and esi, 0xff8
push 0
push esi
push ebx
call dword [sym.imp.USER32.dll_GetDlgItemInt]
test byte [ebp + 0x10], 7
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
jne 0x402762
imul ecx, edx, 0x18
cmp dword [ecx + 0x4308c8], 0
je case.default.0x4024af
mov ecx, eax
jmp 0x402771
mov ecx, dword [ebp + 0x10]
mov edi, eax
and ecx, 1
add ecx, ecx
sub edi, ecx
lea ecx, [edi + 1]
imul edx, edx, 0x18
cmp dword [edx + 0x4308c4], ecx
cmovge ecx, dword [edx + 0x4308c4]
mov edx, dword [edx + 0x4308c8]
cmp edx, ecx
cmovb ecx, edx
cmp ecx, eax
je case.default.0x4024af
push 0
push ecx
push esi
push dword [0x479b20]
jmp 0x4028bb
sub esp, 0xc
push 0x43dc20
call dword [sym.imp.COMDLG32.DLL_GetOpenFileNameA]
add esp, 0xc
jmp 0x4027d6
sub esp, 0xc
push 0x43dc00
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
sub esp, 0xc
push 0x479b40
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
add esp, 0x18
test eax, eax
je case.default.0x4024af
mov eax, dword [0x479b20]
test eax, eax
je case.default.0x4024af
mov edx, dword [ebp + 0x10]
push ecx
push 0x479b40
and edx, 0xff8
push edx
push eax
jmp 0x403188
sar eax, 3
mov dword [ebp - 0x30], eax
imul eax, eax, 0x18
mov eax, dword [eax + 0x4308c8]
mov dword [ebp - 0x3c], eax
test eax, eax
jne case.default.0x4024af
push eax
push eax
push edi
push ebx
call fcn.004022aa
pop edx
mov edx, dword [sym.imp.USER32.dll_GetDlgItem]
and eax, 1
pop ecx
mov dword [ebp - 0x40], eax
mov edi, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], edx
xor edi, 1
lea eax, [eax*8 + 0x328]
push eax
mov dword [ebp - 0x2c], eax
push ebx
call edx
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push edi
push eax
call esi
mov eax, dword [ebp - 0x30]
pop edx
pop edx
inc eax
mov edx, dword [ebp - 0x44]
imul eax, eax, 0x18
cmp dword [eax + 0x4308c8], 0
lea ecx, [eax + 0x4308c0]
mov eax, dword [ebp - 0x2c]
je 0x4028c6
inc eax
push ecx
push ecx
push eax
push ebx
call edx
push edi
push eax
call esi
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x44]
add eax, 2
push eax
push ebx
call edx
push edi
push eax
call esi
cmp dword [ebp - 0x40], 0
pop esi
pop edi
jne 0x4028b2
mov eax, dword [ebp - 0x30]
inc eax
imul eax, eax, 0x18
mov eax, dword [eax + 0x4308cc]
cmp dword [eax], 1
mov eax, 2
adc eax, 0xffffffff
mov dword [ebp - 0x3c], eax
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemInt]
jmp case.default.0x4024af
sub esp, 8
cmp dword [ecx + 4], 0xff
sete cl
movzx ecx, cl
lea eax, [ecx + eax + 3]
push eax
push ebx
call edx
push edi
push eax
call esi
cmp dword [ebp - 0x40], 0
pop eax
pop edx
mov edx, 0x46c4ec
jne 0x402902
mov eax, dword [ebp - 0x30]
inc eax
imul eax, eax, 0x18
mov eax, dword [eax + 0x4308cc]
test eax, eax
je 0x402902
mov edx, dword [eax]
push edi
push edx
push dword [ebp - 0x2c]
jmp 0x403187
sub esp, 0xc
push edi
call fcn.00401599
jmp 0x402eec
mov dword [ebp - 0x28], 0x46c8e0
mov edx, 0xb
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x402940
dec edx
jne 0x402938
xor eax, eax
jmp 0x403327
add eax, 8
mov dword [ebp - 0x28], eax
jmp 0x402926
mov dword [eax], 0x46c4ec
mov eax, dword [ebp - 0x28]
mov dword [eax + 4], 0x46c4ec
mov dword [eax + 8], 0
jmp 0x402974
push esi
push esi
push 0x479b40
push 0x2d0
call fcn.004014eb
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x402931
push eax
push eax
push 0x2d4
push ebx
call fcn.004022ca
mov esi, eax
pop eax
pop edx
push 0x2d8
push ebx
call fcn.004022ca
pop ecx
mov edi, eax
mov eax, dword [ebp - 0x28]
push dword [eax]
call fcn.0042d208
add esp, 0x10
cmp eax, esi
jae 0x4029cb
sub esp, 0xc
lea eax, [esi + edi + 4]
mov edx, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x3c], edx
call fcn.0042d128
mov edx, dword [ebp - 0x3c]
add esp, 0x10
mov dword [edx], eax
lea edx, [eax + esi + 2]
mov eax, dword [ebp - 0x28]
mov dword [eax + 4], edx
jmp 0x4029e0
mov eax, dword [ebp - 0x28]
sub esp, 0xc
push dword [eax + 4]
call fcn.0042d208
add esp, 0x10
cmp eax, edi
jb 0x4029a4
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 0x100
push dword [eax]
push 0x2d4
push ebx
call esi
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp byte [eax], 0x2e
je 0x402a19
mov byte [eax], 0x2e
mov eax, dword [ebp - 0x28]
push 0x100
mov eax, dword [eax]
inc eax
push eax
push 0x2d4
push ebx
call esi
mov eax, dword [ebp - 0x28]
push 0x100
push dword [eax + 4]
push 0x2d8
push ebx
call esi
jmp 0x402a66
push edi
push edi
push 0x479b40
push 0x2d0
call fcn.004014eb
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x402a66
mov edx, dword [eax + 8]
mov dword [eax], edx
test edx, edx
je 0x402a66
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0xc]
add eax, 8
mov dword [eax - 4], edx
mov dword [ebp - 0x28], eax
jmp 0x402a45
push esi
push 0x46c8e0
push section..text
push 0x2d0
jmp 0x402ee7
push ecx
push ecx
push 0x479b40
push 0x2e4
call fcn.004014eb
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x402931
cmp dword [0x46c8c8], 0
je 0x402931
push eax
push eax
push 0x2e8
push ebx
call fcn.004022ca
mov edi, eax
pop eax
pop edx
push 0x2e9
push ebx
call fcn.004022ca
mov dword [esp], 0x479b40
mov esi, eax
call fcn.0042d208
add esi, edi
add esp, 0x10
inc eax
lea edx, [esi + 1]
mov dword [ebp - 0x2c], eax
cmp eax, edx
jle 0x402b36
mov edx, dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 0x100
push dword [ebp - 0x28]
mov dword [ebp - 0x3c], edx
push 0x2e8
push ebx
call edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x3c]
push 0x100
lea eax, [eax + edi + 1]
push eax
push 0x2e9
push ebx
call edx
mov eax, dword [ebp - 0x28]
mov byte [eax + edi], 0x3b
mov eax, dword [ebp - 0x28]
mov byte [eax + esi + 1], 0x3b
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
push edi
push edi
add edx, eax
lea eax, [eax + esi + 2]
push edx
push eax
jmp 0x402c84
mov edx, dword [ebp - 0x28]
push ecx
push ecx
add eax, edx
push eax
push edx
call fcn.0042d1e8
add esp, 0x10
push eax
push eax
push 0x2e8
push ebx
call fcn.004022ca
mov esi, eax
pop eax
pop edx
push 0x2e9
push ebx
call fcn.004022ca
mov edx, dword [0x46c8c8]
add esp, 0x10
mov edi, eax
xor eax, eax
test edx, edx
je 0x402b80
sub esp, 0xc
push edx
call fcn.0042d208
add esp, 0x10
mov dword [ebp - 0x2c], eax
add eax, esi
sub esp, 0xc
lea eax, [edi + eax + 5]
push eax
call fcn.0042d128
add esp, 0x10
cmp dword [ebp - 0x2c], 0
mov edi, eax
je 0x402bb7
push eax
push eax
push dword [0x46c8c8]
push edi
call fcn.0042d1e8
mov eax, dword [ebp - 0x2c]
add esp, 0x10
mov byte [edi + eax], 0x3b
jmp 0x402bbe
mov dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 0x2c]
push 0x100
mov dword [0x46c8c8], edi
lea eax, [edi + eax + 1]
mov edi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
push eax
push 0x2e8
push ebx
call edi
mov eax, dword [ebp - 0x2c]
mov edx, dword [0x46c8c8]
inc eax
add edx, eax
cmp byte [edx], 0x2e
je 0x402c11
mov dword [ebp - 0x2c], eax
mov byte [edx], 0x2e
mov eax, dword [ebp - 0x2c]
mov edx, dword [0x46c8c8]
push 0x100
lea eax, [edx + eax + 1]
push eax
push 0x2e8
push ebx
call edi
mov eax, dword [ebp - 0x2c]
push 0x100
lea eax, [esi + eax + 2]
add eax, dword [0x46c8c8]
push eax
push 0x2e9
push ebx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
add esi, dword [0x46c8c8]
add esi, dword [ebp - 0x2c]
mov byte [esi + 1], 0x3b
jmp 0x402c8c
push eax
push eax
push 0x479b40
push 0x2e4
call fcn.004014eb
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x402931
sub esp, 0xc
push 0x479b40
call fcn.0042d208
mov edx, dword [ebp - 0x28]
pop edi
mov ecx, eax
mov dword [ebp - 0x2c], eax
pop eax
xor eax, eax
cmp byte [edx + ecx], 0x3b
sete al
add eax, ecx
add eax, edx
push eax
push edx
call fcn.0042d1e8
add esp, 0x10
push esi
push dword [0x46c8c8]
push 0x40115a
push 0x2e4
jmp 0x402ee7
push ecx
push ecx
push 0x479b40
push 0x2f8
call fcn.004014eb
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x402931
push ecx
push ecx
push 0x2fc
push ebx
call fcn.004022ca
pop edi
mov esi, eax
pop eax
push 0x2fd
push ebx
call fcn.004022ca
mov edi, eax
pop eax
pop edx
push 0x300
push ebx
call fcn.004022ca
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
call fcn.0042d3c4
mov ecx, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.0041128e
mov ecx, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
call fcn.0042d208
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
add esp, 0x10
sub eax, ecx
add eax, edx
lea edx, [esi + edi]
add edx, dword [ebp - 0x30]
add edx, 6
cmp eax, edx
jae 0x402d85
mov eax, dword [ebp - 0x28]
mov byte [eax + 4], 0
push ecx
push ecx
push 0x2fc
push ebx
call fcn.004022ca
pop edi
mov esi, eax
pop eax
push 0x2fd
push ebx
call fcn.004022ca
mov edi, eax
pop eax
pop edx
push 0x300
push ebx
call fcn.004022ca
lea edx, [esi + edi]
mov dword [ebp - 0x30], eax
lea eax, [eax + edx + 9]
mov dword [esp], eax
call fcn.0042d128
mov edx, dword [0x46c888]
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [eax], edx
mov eax, dword [ebp - 0x28]
mov dword [0x46c888], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 0x100
add eax, 5
mov dword [ebp - 0x3c], edx
push eax
push 0x2fc
push ebx
call edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x3c]
push 0x100
lea eax, [eax + esi + 6]
push eax
push 0x2fd
push ebx
call edx
add esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x3c]
lea edi, [esi + edi + 7]
push 0x100
push edi
push 0x300
push ebx
call edx
push ecx
push ecx
push 0x42e458
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x302
push ebx
call fcn.004022aa
pop esi
pop edx
push 0x303
push ebx
cmp eax, 1
sbb esi, esi
and esi, 0xfffffffc
call fcn.004022aa
add esi, 0x84
add esp, 0x10
test eax, eax
je 0x402e10
or esi, 8
push edx
push edx
push 0x304
push ebx
call fcn.004022aa
add esp, 0x10
test eax, eax
jne 0x402e27
or esi, 0x40
push eax
push eax
push 0x306
push ebx
call fcn.004022aa
add esp, 0x10
test eax, eax
je 0x402e3e
or esi, 2
push eax
push eax
push 0x307
push ebx
call fcn.004022aa
add esp, 0x10
test eax, eax
je 0x402e55
or esi, 0x20
push eax
push eax
push 0x308
push ebx
call fcn.004022aa
add esp, 0x10
test eax, eax
je 0x402e6c
or esi, 0x10
push eax
push eax
push 0x305
push ebx
call fcn.004022aa
add esp, 0x10
test eax, eax
je 0x402ea9
push eax
or esi, 1
push edi
push str._smbox
push 0x479b40
call dword [sym.imp.USER32.dll_wsprintfA]
pop edx
pop ecx
push 0x42e458
push 0x479b40
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop eax
mov eax, dword [ebp - 0x28]
mov ecx, esi
mov byte [eax + 4], cl
jmp 0x402ed6
push eax
push eax
push 0x479b40
push 0x2f8
call fcn.004014eb
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x402931
mov byte [eax + 4], 0
push eax
push dword [0x46c888]
push 0x4011c2
push 0x2f8
call fcn.00401486
add esp, 0x10
jmp case.default.0x4024af
push eax
push eax
push 0x479b40
push 0x30c
call fcn.004014eb
add esp, 0x10
mov edx, 0x46ccc0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x402931
mov ecx, edx
mov edx, dword [edx]
cmp eax, edx
je 0x402f26
test edx, edx
jne 0x402f18
jmp case.0x4026f8.781
mov eax, dword [eax]
mov dword [ecx], eax
push eax
push eax
push 0x310
push ebx
call fcn.004022ca
mov edi, eax
pop eax
pop edx
push 0x318
push ebx
call fcn.004022ca
pop ecx
mov dword [ebp - 0x30], 0
mov esi, eax
pop eax
push 0x31c
push ebx
call fcn.004022aa
add esp, 0x10
test eax, eax
je 0x402f76
push eax
push eax
push 0x31d
push ebx
call fcn.004022ca
add esp, 0x10
mov dword [ebp - 0x30], eax
lea eax, [edi + esi]
add eax, dword [ebp - 0x30]
sub esp, 0xc
add eax, 0xc
push eax
call fcn.0042d128
lea edx, [eax + edi + 0xa]
mov dword [ebp - 0x28], eax
mov dword [eax + 4], edx
mov edx, dword [0x46ccc0]
mov dword [eax], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 0x100
mov dword [0x46ccc0], eax
add eax, 9
push eax
mov dword [ebp - 0x3c], edx
push 0x310
push ebx
call edx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x3c]
lea eax, [ecx + edi + 0xa]
mov dword [ecx + 4], eax
push 0x100
push eax
push 0x318
push ebx
call edx
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp dword [ebp - 0x30], 0
je 0x403002
mov edi, dword [ebp - 0x28]
lea eax, [esi + 1]
movsx esi, al
mov ecx, dword [edi + 4]
mov byte [edi + 8], al
push 0x100
add esi, ecx
push esi
push 0x31d
push ebx
call edx
push eax
push eax
push 0x31a
push ebx
call fcn.004022aa
add esp, 0x10
test eax, eax
je 0x40311d
mov eax, dword [ebp - 0x28]
cmp byte [eax + 9], 0x2f
je 0x40311d
cmp dword [0x46c974], 0
mov eax, 0x43e196
mov esi, 0x43e18f
cmovns esi, eax
push eax
push eax
push 0x100
push 0x479b40
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
add eax, 0x479b40
push esi
push eax
call fcn.0042d1e8
pop edx
pop ecx
push 1
push 0x479b40
call fcn.0040357d
mov esi, eax
pop edi
pop eax
test esi, esi
jg 0x403089
sub esp, 0xc
push 0x479b40
call fcn.004035b1
mov esi, eax
add esp, 0xc
test eax, eax
jle 0x40311d
push eax
push 2
push 0
push esi
call fcn.0040364f
mov dword [esp], 0x100
push 0x479b40
push 0x31b
push ebx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov edi, eax
push eax
mov eax, dword [ebp - 0x28]
add eax, 9
push eax
lea eax, [edi + 0x479b40]
push 0x43e1ba
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add edi, eax
add esp, 0xc
push edi
push 0x479b40
push esi
call fcn.00403629
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
jmp 0x40311d
push eax
push eax
push 0x479b40
push 0x30c
call fcn.004014eb
add esp, 0x10
mov edx, 0x46ccc0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x402931
mov ecx, edx
mov edx, dword [edx]
cmp eax, edx
je 0x403119
test edx, edx
jne 0x40310b
jmp 0x40311d
mov eax, dword [eax]
mov dword [ecx], eax
push edi
push dword [0x46ccc0]
push 0x40103f
push 0x30c
jmp 0x402ee7
push eax
push eax
push edi
push ebx
call fcn.004022aa
mov esi, eax
pop eax
lea eax, [edi + 1]
pop edx
and esi, 1
push eax
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop ecx
pop esi
cmp edi, 0x31a
jne case.default.0x4024af
push edi
push edi
push 0x31b
push ebx
call fcn.004022ca
add esp, 0x10
test eax, eax
jne case.default.0x4024af
push esi
push 0x43e1c0
push 0x31b
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
pop ecx
jmp case.default.0x4024af
call fcn.0040dd19
mov dword [0x46c9e8], 0x7ff
jmp 0x402647
call fcn.0042403d
jmp 0x402647
push 0
push str.Small_Server
push str.Small_HTTP_Server_ver._3.06.28_r_nby_Max_Feoktistov_r_nE_mail:_support_smallsrv.com_r_n__C__1999_2024_r_nMD5_cashe_function_derived_from_the_RSA_Data_Security__Inc._MD5_Message_Digest_Algorithm_r_n
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402647
cmp dword [0x479b20], 0
jne case.default.0x4024af
call fcn.00401bff
jmp case.default.0x4024af
sub edi, 0x15e
mov ebx, dword [edi*4 + 0x43dc84]
cmp byte [ebx + 7], 0x31
jne 0x40326a
test byte [0x46c97e], 4
je 0x40322a
cmp dword [0x42e478], 0
je 0x40322a
sub esp, 0xc
push 0x30
call fcn.0042d128
mov esi, eax
lea eax, [ebx + 0x10]
add ebx, 7
mov dword [esp], eax
push dword [0x42e69c]
push ebx
push str.https:___.9s:_u_s
jmp 0x403257
cmp dword [0x42e688], 0x50
je 0x40326a
cmp byte [ebx + 0x10], 0x3a
je 0x40326a
sub esp, 0xc
push 0x30
call fcn.0042d128
mov esi, eax
lea eax, [ebx + 0x10]
mov dword [esp], eax
push dword [0x42e688]
push ebx
push str._.16s:_u_s
push esi
mov ebx, esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [edi*4 + str.http:__smallsrv.com_index.htmnew], esi
add esp, 0x20
push eax
push eax
push 1
push 0
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop eax
pop edx
jmp 0x402647
lea ebx, [edi - 0x168]
cmp ebx, 9
ja 0x402647
mov eax, dword [0x451184]
push esi
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
push 0
add eax, 0x168
push eax
push dword [0x479b28]
call esi
push 8
push edi
push dword [0x479b28]
call esi
mov ecx, dword [ebx*4 + 0x463460]
mov dword [0x451184], ebx
pop edi
mov dword [0x42e048], ecx
call fcn.00403726
jmp 0x402647
sub esp, 0xc
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
add esp, 0xc
jmp 0x402647
call fcn.0040dd6e
jmp case.default.0x4024af
cmp dword [ebp + 0x10], 4
je 0x403300
cmp dword [ebp + 0x10], 1
jne case.default.0x4024af
push eax
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x42e49c], 1
pop edx
pop ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcA]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10