Function at 0x401163
Capabilities:
Get file size
Get graphical window text
Query environment variable
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x77c
mov eax, dword [0x41708c]
xor eax, esp
mov dword [esp + 0x778], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], ecx
mov dword [0x4189a0], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x2c], 0x53
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [esp + 0x20], eax
mov esi, eax
xor edx, edx
lea ecx, [eax + 2]
mov di, word [eax]
add eax, 2
cmp di, bx
jne 0x4011b6
sub eax, ecx
jmp 0x4011df
lea esi, [esi + eax*2 + 2]
lea edx, [edx + eax + 1]
mov eax, esi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4011d2
sub eax, edi
sar eax, 1
cmp eax, ebx
ja 0x4011c5
xor eax, eax
mov word [esp + 0xec], ax
mov eax, dword [esp + 0x20]
push edx
lea ecx, [esp + 0xf0]
mov dword [esp + 0x104], 7
mov dword [esp + 0x100], ebx
call fcn.0040241a
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 1
xor edi, edi
lea esi, [esp + 0xf0]
call fcn.004024b3
cmp dword [esp + 0x54], ebx
jne 0x40130b
mov eax, dword [0x4189ac]
push ebx
push dword [0x418998]
push ebx
push eax
call dword [sym.imp.USER32.dll_DefWindowProcA]
cmp dword [esp + 0x54], ebx
jne 0x40130b
push 0x12
push ebx
push ebx
mov esi, 0x413198
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
lea ecx, [esp + 0xec]
push ecx
push ebx
push esi
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0xfc], 0x1c
mov dword [esp + 0x24], ebx
push eax
jmp 0x4012a1
inc dword [esp + 0x14]
lea eax, [esp + 0xec]
push eax
push dword [esp + 0x18]
push esi
push ebx
push dword [esp + 0x30]
call edi
test eax, eax
jne 0x40128b
push dword [esp + 0x20]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp dword [esp + 0x54], ebx
jne 0x40130b
lea eax, [esp + 0x148]
push eax
push ebx
call dword [sym.imp.USER32.dll_BeginPaint]
mov edi, eax
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [esp + 0x368]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4012db
sub eax, esi
push eax
lea eax, [esp + 0x36c]
push eax
push dword [esp + 0x64]
push dword [esp + 0x68]
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
lea eax, [esp + 0x148]
push eax
push ebx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [0x418998]
mov edx, dword [0x41899c]
lea ecx, [ecx + edx + 1]
xor eax, eax
mov dword [0x418998], ecx
mov word [esp + 0x11c], ax
inc eax
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x120]
push eax
push ebx
mov dword [esp + 0x128], 0x53
call dword [sym.imp.OLEAUT32.dll_RevokeActiveObject]
mov ecx, dword [0x41899c]
movzx esi, al
cmp ecx, ebx
je 0x401368
mov eax, dword [esp + 0x40]
add eax, 0x53
mov dword [esp + 0x18], eax
cmp esi, ebx
jle 0x401383
mov eax, esi
push 0xa
cdq
pop edi
idiv edi
test edx, edx
jne 0x401383
mov edi, 0x1b3
mov dword [esp + 0x10], ebx
jmp 0x40139d
add dword [esp + 0x18], 0xa1
inc dword [0x418998]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], 4
sub ecx, dword [esp + 0x5c]
mov dword [0x41899c], ecx
cmp esi, 0x10
jle 0x4013b6
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x10], ebx
jne 0x4013d1
add esi, 0x6ab
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4014a7
push dword [esp + 0x18]
mov esi, dword [sym.imp.USER32.dll_SetRect]
push edi
push 0x32
push 0x32
lea eax, [esp + 0x148]
push eax
mov dword [esp + 0x30], 1
call esi
push dword [esp + 0x18]
lea eax, [esp + 0x12c]
push edi
push 0x46
push 0x64
push eax
call esi
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x12c]
push eax
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.USER32.dll_SubtractRect]
test eax, eax
je 0x401439
xor edi, edi
jmp 0x401441
mov dword [esp + 0x18], 1
push dword [esp + 0x18]
lea eax, [esp + 0x12c]
push edi
push 0x46
push 0x64
push eax
call esi
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x12c]
push eax
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.USER32.dll_SubtractRect]
test eax, eax
jne 0x40148c
mov dword [esp + 0x18], 1
mov ecx, dword [0x4189a4]
mov eax, dword [esp + 0x10]
inc ecx
imul ecx, dword [0x41899c]
imul ecx, eax
mov dword [0x418998], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x260], eax
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, dword [esp + 0x10]
lea ecx, [edx + 1]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x260], ecx
cmp eax, edx
jne 0x4014de
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], ebx
jne 0x4014f5
mov byte [esp + 0x14], bl
mov eax, dword [esp + 0x14]
mov dword [0x4189b0], eax
cmp dword [0x4189b0], ebx
je 0x4022a2
inc dword [esp + 0x18]
cmp dword [0x418998], ebx
jne 0x401513
movzx edi, byte [esp + 0x18]
inc edi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
call esi
push 1
mov dword [esp + 0x34], eax
call esi
push dword [esp + 0x5c]
mov esi, eax
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x40cc0020
push ebx
push ebx
push ebx
push esi
push dword [esp + 0x44]
push ebx
push ebx
push dword [esp + 0x50]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x28], eax
cmp dword [esp + 0x10], ebx
jne 0x401564
mov eax, dword [esp + 0x28]
mov dword [0x4189a8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x10]
mov esi, 0x103
push esi
mov byte [esp + 0x474], al
lea eax, [esp + 0x475]
push ebx
push eax
call fcn.004069e0
mov al, byte [esp + 0x1c]
add esp, 0xc
push esi
mov byte [esp + 0x36c], al
lea eax, [esp + 0x36d]
push ebx
push eax
call fcn.004069e0
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
lea eax, [esp + 0x488]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [0x4189a4]
mov esi, dword [esp + 0x10]
mov ecx, dword [0x418998]
lea edx, [edx + esi + 1]
imul edx, dword [0x4189a8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
sub eax, ecx
add eax, dword [esp + 0x14]
cmp eax, edx
jne 0x40161b
add dword [0x41899c], ecx
cmp edi, ebx
je 0x401637
mov eax, dword [esp + 0x14]
mov ecx, dword [0x41899c]
sub eax, edi
dec eax
add ecx, edi
imul eax, ecx
mov dword [esp + 0x18], eax
jmp 0x401644
mov edi, dword [esp + 0x10]
imul edi, edi, 0xa
add edi, 0x1fc
push ebx
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x40]
mov dword [esp + 0x90], ebx
push dword [esp + 0x3c]
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x3c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [0x418998]
push dword [esp + 0x20]
lea eax, [edi + 4]
imul eax, edi
add eax, dword [esp + 0x14]
lea eax, [eax + ecx*2]
mov dword [0x41899c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
imul eax, eax, 0xf
add eax, dword [esp + 0x18]
mov dword [esp + 0x70], ebx
imul eax, edi
cdq
sub eax, edx
sar eax, 1
imul eax, eax, 0xa
add dword [0x418998], eax
lea eax, [esp + 0x70]
push eax
push 1
push dword [esp + 0x44]
mov dword [0x4189ac], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
mov eax, dword [0x4189a4]
jbe 0x401705
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
mov ecx, dword [0x418998]
lea esi, [eax + esi + 1]
imul esi, dword [0x4189a8]
sub edx, ecx
add edx, dword [esp + 0x14]
cmp edx, esi
jne 0x401717
add dword [0x41899c], ecx
jmp 0x401717
mov edx, dword [0x4189ac]
add edx, dword [esp + 0x10]
add edx, edx
mov dword [0x418998], edx
cmp dword [esp + 0x10], ebx
jne 0x401727
cmp dword [esp + 0x3c], ebx
jne 0x401727
cmp eax, ebx
je 0x401793
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x401738
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x80]
push eax
push 0x41126c
push ebx
push dword [esp + 0x44]
push dword [esp + 0x80]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x104
lea eax, [esp + 0x36c]
push eax
lea eax, [esp + 0x580]
push eax
call fcn.00403317
add esp, 0xc
lea eax, [esp + 0x578]
push eax
push dword [esp + 0x84]
call dword [sym.imp.OLEAUT32.dll_OleLoadPicturePath]
push dword [0x4189ac]
mov dword [esp + 0x3c], ebx
xor esi, esi
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_GetMenu]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
lea eax, [eax + eax + 0x10]
push 0xf
mov dword [esp + 0x30], eax
mov eax, dword [0x4189ac]
pop ecx
mov edx, eax
imul edx, dword [esp + 0x18]
dec ecx
mov dword [esp + 0x18], edx
jne 0x4017c1
mov edi, dword [sym.imp.USER32.dll_GetMenuItemInfoA]
cmp edx, ebx
jne 0x4017f3
mov edx, dword [0x418998]
imul edx, dword [esp + 0x10]
add edx, 0x1000
mov dword [esp + 0x14], edx
jmp 0x4018bd
jge 0x40191f
lea eax, [esp + 0x8c]
push eax
push ebx
push dword [0x418998]
mov dword [esp + 0x9c], 4
push dword [esp + 0x2c]
call edi
mov eax, dword [0x4189ac]
add eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx + 0xa0]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x8c]
push eax
push ebx
push dword [0x41899c]
mov dword [esp + 0x9c], 8
push dword [esp + 0xac]
call edi
push dword [esp + 0xa4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0xa8]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esp + 0x8c]
push eax
push ebx
push dword [esp + 0x34]
mov dword [esp + 0x44], 0xfffffc00
push dword [esp + 0x2c]
mov dword [esp + 0xa0], 4
call edi
mov ecx, dword [esp + 0x10]
mov eax, dword [0x4189ac]
lea edx, [ecx + 0x10]
imul edx, dword [esp + 0x3c]
imul edx, edx, 0xb
add edx, eax
imul edx, ecx
sub edx, dword [0x4189a4]
mov dword [0x41899c], edx
mov edx, dword [esp + 0x14]
cmp edx, 1
jb 0x401921
jbe 0x4018f8
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
mov esi, edx
sub esi, ecx
inc edi
imul esi, edi
lea edi, [eax + 1]
imul esi, edi
imul esi, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
imul esi, esi, 0x27
add edi, ecx
mov dword [0x418998], edi
cmp esi, ebx
je 0x4018f8
mov dword [0x41899c], ebx
mov edi, dword [0x4189a4]
mov ecx, edx
imul ecx, ecx, 0x101
add ecx, edi
lea edx, [edi + edx*4]
shl edx, 4
add ecx, eax
cmp edx, ebx
jbe 0x40192d
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
jmp 0x40193c
mov edx, ebx
mov ecx, dword [esp + 0x38]
mov dword [0x41899c], ecx
jmp 0x4018f8
push dword [esp + 0x14]
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x20], eax
push 0x12
mov eax, str.kernel32
pop edi
mov dword [0x418964], eax
mov dword [0x418968], 0x4131a8
mov dword [0x41896c], ebx
cmp dword [esp + 0x3c], ebx
jne 0x401968
mov edi, 0x12000
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
je 0x401984
push dword [0x418968]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push edi
push ebx
push dword [esp + 0x28]
call esi
mov ecx, dword [0x4189a4]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x30], eax
cmp dword [0x4189ac], ecx
je 0x4019a6
mov esi, dword [esp + 0x1c]
cmp dword [0x4189a8], ecx
jbe 0x401a0f
xor edi, edi
cmp esi, ebx
jle 0x401a0f
cmp ecx, ebx
jne 0x4019e4
mov eax, dword [esp + 0x3c]
inc eax
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4019de
cmp dword [esp + 0x10], ebx
jne 0x4022a2
inc dword [esp + 0x2c]
cmp dword [0x4189ac], ebx
jne 0x401a0f
mov ecx, dword [0x4189a4]
cmp dword [0x4189b0], ebx
je 0x401a0f
mov eax, dword [esp + 0x28]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cmp eax, ebx
jle 0x401a0a
cmp dword [esp + 0x10], ebx
je 0x401a07
inc dword [esp + 0x2c]
dec eax
jne 0x4019fd
inc edi
cmp edi, esi
jl 0x4019b4
cmp dword [esp + 0x28], ebx
je 0x401a25
cmp dword [0x4189a8], ebx
je 0x401a25
mov dword [esp + 0x58], 1
push ebx
lea eax, [esp + 0x10c]
push eax
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x114], 1
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
lea eax, [esp + 0x1c]
push eax
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x64]
push eax
push ebx
mov dword [esp + 0x6c], ebx
call dword [sym.imp.gdiplus.dll_GdipCreatePath]
push 0x23a
mov edi, 0x2e4
push edi
push ebx
push ebx
push dword [esp + 0x74]
mov dword [esp + 0x7c], eax
call dword [sym.imp.gdiplus.dll_GdipAddPathEllipseI]
cmp eax, ebx
je 0x401aa4
mov dword [esp + 0x68], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x68]
mov dword [esp + 0x4c], vtable.Gdiplus::PathGradientBrush.0
mov dword [esp + 0x28], ebx
call dword [sym.imp.gdiplus.dll_GdipCreatePathGradientFromPath]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
push 0xa0000ff
push eax
mov dword [esp + 0x50], eax
call dword [sym.imp.gdiplus.dll_GdipSetPathGradientCenterColor]
cmp eax, ebx
je 0x401adf
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x70]
push eax
lea esi, [esp + 0x4c]
mov dword [esp + 0x74], 0xff00ffff
mov dword [esp + 0x3c], 1
call fcn.004010af
push 0x23a
push edi
push ebx
push ebx
push dword [esp + 0x58]
push dword [esp + 0x30]
call dword [sym.imp.gdiplus.dll_GdipFillEllipseI]
push dword [esp + 0x48]
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
push dword [esp + 0x64]
call dword [sym.imp.gdiplus.dll_GdipDeletePath]
push dword [esp + 0x78]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esp + 0x5c]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x34], eax
call fcn.00402770
mov esi, eax
mov dword [esi], esi
mov dword [esp + 0x44], esi
mov dword [esi + 4], esi
cmp dword [esp + 0x10], ebx
je 0x401c1b
movzx eax, byte [esp + 0x2c]
push eax
call fcn.00403877
pop ecx
test eax, eax
je 0x401c1b
lea eax, [esp + 0x5c]
push eax
push 1
lea eax, [esp + 0x268]
push eax
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea eax, [esp + 0x148]
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401bce
sub eax, esi
lea ecx, [esp + 0x148]
lea edx, [esp + 0xec]
call fcn.004025d3
mov esi, dword [esp + 0x44]
lea eax, [esp + 0xec]
push eax
push dword [esi + 4]
push esi
call fcn.0040270b
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
push 1
xor edi, edi
lea esi, [esp + 0xf0]
mov dword [ecx], eax
call fcn.00402349
mov esi, dword [esp + 0x44]
push dword [esp + 0x34]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi]
mov dword [esi], esi
mov dword [esi + 4], esi
cmp eax, esi
jmp 0x401c66
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push 1
lea esi, [eax + 8]
xor edi, edi
mov dword [esp + 0x38], ecx
call fcn.00402349
push dword [esp + 0x1c]
call fcn.004038b2
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x48]
pop ecx
mov dword [esp + 0x1c], eax
jne 0x401c3e
push dword [esp + 0x44]
call fcn.004038b2
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
mov eax, dword [0x4189ac]
mov dword [esp], 0x2400
push 0x2710
mov dword [esp + 0x24], ebx
mov dword [esp + 0x64], eax
call fcn.004037e1
pop ecx
pop ecx
mov dword [esp + 0x4c], ebx
call fcn.00402952
mov esi, dword [esp + 0x3c]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
mov dword [esp + 0x48], eax
mov dword [eax], eax
mov eax, dword [esp + 0x48]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x48]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x48]
push ebx
push 0x64
mov byte [eax + 0x2c], 1
mov eax, dword [esp + 0x50]
push 1
push esi
mov byte [eax + 0x2d], 1
call edi
push ebx
push 0x7d0
push 2
push esi
call edi
mov eax, dword [esp + 0x10]
add eax, esi
mov ecx, dword [0x4189ac]
jne 0x401d01
mov eax, dword [esp + 0x30]
add eax, esi
add eax, dword [esp + 0x10]
jmp 0x401d13
mov eax, dword [esp + 0x10]
inc eax
imul eax, eax, 0x64
sub eax, dword [esp + 0x18]
add eax, ecx
add eax, dword [esp + 0x58]
cmp dword [esp + 0x2c], 2
mov dword [esp + 0x14], eax
jne 0x401d2a
mov eax, dword [0x418998]
lea eax, [ecx + eax*2]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
add eax, esi
add dword [0x41899c], eax
lea eax, [esp + 0x260]
push eax
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
cmp edi, ebx
jne 0x401d73
mov eax, dword [esp + 0x48]
push dword [eax + 4]
lea ecx, [esp + 0x48]
call fcn.0040252a
mov eax, dword [esp + 0x48]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x48]
mov dword [eax], eax
mov eax, dword [esp + 0x48]
mov dword [eax + 8], eax
mov dword [esp + 0x4c], ebx
lea eax, [esp + 0x6c]
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x74], 1
call edi
cmp dword [esp + 0x10], ebx
jne 0x4021da
push ebx
push 0x8002
push ebx
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
lea ecx, [esp + 0x74]
push ecx
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x7c], ebx
call edi
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0x6c]
je 0x401dcd
mov eax, dword [esp + 0x28]
add eax, 5
imul eax, eax, 3
add eax, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
push 0x64
lea eax, [esp + 0x19c]
push eax
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 7
pop edi
xor eax, eax
push edi
mov word [esp + 0x262], ax
lea eax, [esp + 0x19c]
push str.Connect
push eax
call fcn.004038bd
add esp, 0xc
xor eax, eax
mov word [esp + 0xec], ax
lea eax, [esp + 0x198]
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], ebx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x401e26
sub eax, ecx
sar eax, 1
push eax
lea eax, [esp + 0x19c]
lea ecx, [esp + 0xf0]
call fcn.0040241a
mov edi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0x41318e
push str.SysCredential
push ebx
push dword [esp + 0x2c]
call edi
push str.Remember_my_password
push str.BUTTON
push ebx
push eax
mov dword [esp + 0x44], eax
call edi
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x401eb2
mov eax, dword [0x4189a8]
mov edx, eax
sar edx, 8
mov ecx, 0x40e4f8
sub ecx, edx
cmp eax, dword [0x4189b0]
jae 0x401eb2
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
mov eax, dword [0x4189ac]
inc eax
imul eax, eax, 7
add eax, ecx
push eax
push dword [esp + 0x1c]
call fcn.00406a60
add esp, 0xc
push ebx
push ebx
push 0xf0
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push str.ComboBoxEx32
push ebx
push dword [esp + 0x40]
call edi
mov dword [esp + 0x64], eax
cmp eax, ebx
jne 0x4020a7
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x40], eax
jne 0x401efe
mov eax, dword [0x4189a4]
inc eax
imul eax, dword [0x4189a8]
add dword [0x418998], eax
jmp 0x4020a7
neg esi
sbb esi, esi
lea eax, [esp + 0x148]
push eax
push dword [0x4189a4]
not esi
and esi, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.RASAPI32.dll_RasGetConnectionStatistics]
cmp eax, 0x40
jbe 0x401f31
mov eax, dword [0x4189a4]
inc eax
mov dword [esp + 0x1c], eax
cmp dword [0x4189a8], ebx
je 0x4020a7
cmp dword [0x4189b0], ebx
je 0x4020a7
mov dword [esp + 0x40], ebx
cmp esi, ebx
jle 0x4020a7
mov eax, dword [esp + 0x1c]
lea eax, [esp + eax + 0x28]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov al, byte [eax]
mov byte [esp + 0x27], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x58]
push dword [0x418998]
add eax, 0xbb
sub eax, dword [0x4189a4]
push dword [0x4189ac]
lea eax, [eax + edi - 2]
mov dword [esp + 0x80], eax
xor al, byte [esp + 0x2f]
mov byte [esp + 0x2f], al
call dword [sym.imp.USER32.dll_GetDlgItem]
mov eax, dword [0x418998]
add eax, dword [0x41899c]
cmp eax, dword [0x4189b0]
jle 0x401fc9
inc dword [0x41899c]
mov eax, dword [0x4189a4]
mov cl, byte [esp + 0x27]
push dword [0x4189ac]
mov byte [esp + eax + 0x2c], cl
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x401ff0
mov eax, dword [0x41899c]
mov dword [0x418998], eax
mov al, byte [esp + 0x14]
mov edi, dword [esp + 0x88]
mov edx, dword [0x4189ac]
mov ecx, dword [esp + 0x1c]
mov byte [edi], al
mov eax, dword [esp + 0x58]
add eax, 0xbb
cmp eax, ebx
je 0x40201a
mov al, byte [esp + edx + 0x28]
jmp 0x402022
mov eax, dword [0x4189a4]
mov al, byte [edi + eax]
push 0xa
mov byte [ecx], al
pop ecx
xor eax, eax
mov dword [esp + 0xbc], 0x30
mov dword [esp + 0xc0], 0x14
lea edi, [esp + 0xc4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xbc]
push eax
push 1
push dword [0x418998]
push edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
push str.Menu
push dword [0x4189a4]
call dword [sym.imp.USER32.dll_LoadMenuA]
mov edi, dword [esp + 0x58]
add edi, 0xbb
imul edi, dword [esp + 0x78]
add edi, dword [0x4189a4]
lea eax, [esp + 0x108]
push eax
push dword [0x4189ac]
call dword [sym.imp.USER32.dll_GetClientRect]
inc dword [esp + 0x40]
cmp dword [esp + 0x40], esi
jl 0x401f64
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
mov word [esp + 0x198], ax
lea eax, [esp + 0x198]
push eax
push 0x64
push 0xd
push dword [esp + 0x70]
call esi
cmp word [esp + 0x198], bx
jne 0x4020e4
push ebx
push str.Edit
push ebx
push dword [esp + 0x40]
call dword [sym.imp.USER32.dll_FindWindowExA]
push ebx
push ebx
push 0xe
push dword [esp + 0x68]
call esi
test eax, eax
jne 0x402169
mov edi, dword [esp + 0x48]
mov esi, dword [edi + 4]
mov dword [esp + 0x78], edi
jmp 0x40211b
lea ecx, [esi + 0xc]
lea eax, [esp + 0xec]
call fcn.00402576
test al, al
je 0x402117
mov esi, dword [esi + 8]
jmp 0x40211b
mov edi, esi
mov esi, dword [esi]
cmp byte [esi + 0x2d], bl
je 0x4020ff
mov dword [esp + 0x5c], edi
cmp edi, dword [esp + 0x48]
je 0x402143
lea eax, [edi + 0xc]
lea ecx, [esp + 0xec]
call fcn.00402576
test al, al
jne 0x402143
lea eax, [esp + 0x5c]
jmp 0x40214f
mov eax, dword [esp + 0x48]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x78]
cmp dword [eax], ecx
jne 0x402169
lea edx, [esp + 0xec]
lea ecx, [esp + 0x44]
call fcn.004022bb
mov dword [eax], ebx
mov eax, dword [0x418998]
add eax, dword [esp + 0x58]
js 0x402181
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x54]
mov dword [ecx + 1], eax
jmp 0x40218f
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
lea eax, [esp + eax + 0x54]
mov dword [ecx], eax
lea edx, [esp + 0xec]
lea ecx, [esp + 0x44]
call fcn.004022bb
mov esi, dword [eax]
lea edx, [esp + 0xec]
lea ecx, [esp + 0x44]
inc esi
call fcn.004022bb
push ebx
push 1
push 0x111
push dword [esp + 0x2c]
mov dword [eax], esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
xor edi, edi
lea esi, [esp + 0xf0]
call fcn.004024b3
mov esi, dword [esp + 0x3c]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push 1
push esi
call edi
push 2
push esi
call edi
push dword [esp + 0x18]
push dword [esp + 0x30]
push dword [esp + 0x18]
push esi
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov eax, dword [esp + 0x48]
push dword [eax + 4]
lea ecx, [esp + 0x48]
call fcn.0040252a
mov eax, dword [esp + 0x48]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x48]
mov dword [eax], eax
mov eax, dword [esp + 0x48]
mov dword [eax + 8], eax
push dword [esp + 0x48]
mov dword [esp + 0x50], ebx
call fcn.004038b2
mov edi, dword [0x41899c]
pop ecx
lea eax, [esp + 0x108]
push eax
push dword [0x4189ac]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x110]
sub eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x114]
sub ecx, dword [esp + 0x10c]
add eax, dword [esp + 0x10]
add ecx, edi
cmp eax, 0x64
jge 0x402273
push 0x64
pop eax
cmp ecx, 0x64
jge 0x40227b
push 0x64
pop ecx
push dword [esp + 0x18]
push 0x16
push ecx
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
push dword [esp + 0x18]
push ebx
push esi
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_EnumFontsA]
jmp 0x4022a4
xor eax, eax
mov ecx, dword [esp + 0x784]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004030ec
mov esp, ebp
pop ebp
ret 0x10