Function at 0x418118
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x28], eax
xor eax, eax
push edi
push eax
mov byte [ebp - 9], al
mov byte [ebp - 2], al
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 9]
push eax
lea ebx, [ebp + 0xc]
mov byte [ebp - 1], 0x2a
mov byte [ebp - 0xa], 1
call fcn.0041519d
add esp, 0x14
push dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
call fcn.004361de
mov eax, dword [ebp - 0x24]
xor ebx, ebx
push 0x4975e4
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], ebx
mov word [ebp - 0x49c], bx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebp - 9], bl
push 0x2c
push dword [ebp + 0xc]
setne al
shl al, 1
xor al, byte [0x496bfc]
and al, 2
xor byte [0x496bfc], al
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x4181ce
mov word [eax], bx
add dword [ebp - 0x20], 2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0042ed5c
test eax, eax
pop ecx
pop ecx
jle 0x4181ce
mov eax, dword [ebp - 0x1c]
mov dword [0x49a00c], eax
cmp dword [0x49a00c], 0x80000000
jne 0x4181e4
call fcn.0040b3e2
mov dword [0x49a00c], eax
mov eax, dword [ebp + 0xc]
movsx edx, byte [ebp - 1]
movzx ecx, word [eax]
cmp ecx, edx
sete byte [ebp - 1]
cmp edx, ecx
je 0x418211
push eax
call fcn.0046c1b3
test eax, eax
pop ecx
je 0x41820e
cmp byte [ebp - 2], bl
je 0x418217
mov byte [ebp - 2], 2
jmp 0x418214
mov eax, dword [ebp + 0xc]
mov word [eax], bx
cmp byte [ebp - 2], bl
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
setne al
cmp byte [ebp - 0xa], bl
mov byte [0x496e18], al
setne al
shl al, 2
xor al, byte [0x496bfc]
and al, 4
xor byte [0x496bfc], al
mov eax, dword [ebp + 0xc]
cmp word [eax], bx
je 0x418405
push 0x104
push eax
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
cmp dword [0x496d7c], ebx
mov byte [0x496e01], 1
jne 0x4183b4
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GdiPlus.dll
call edi
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x418354
mov ecx, dword [ebp + 8]
push 1
push ebx
lea eax, [ebp - 0x10]
push eax
push str._SystemRoot_WinSxS
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
call fcn.0043d4de
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0046c113
add esp, 0xc
test eax, eax
je 0x418344
push dword [ebp - 0x10]
call fcn.0040a51d
pop ecx
cmp word [ebp - 0x268], 0x2e
je 0x418331
test byte [ebp - 0x294], 0x10
je 0x418331
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x268]
push eax
call esi
push dword [ebp - 8]
mov dword [ebp - 0x30], eax
call esi
mov ecx, dword [ebp - 0x30]
lea eax, [eax + ecx + 0x1e]
push eax
lea ecx, [ebp + 8]
call fcn.0042c415
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x10]
push str._s_sGdiPlus.dll
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push dword [ebp + 8]
call edi
lea ecx, [ebp + 8]
mov dword [ebp - 8], eax
call fcn.0042704a
cmp dword [ebp - 8], ebx
jne 0x418344
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403ce3
test eax, eax
jne 0x4182c7
lea ecx, [ebp - 0x10]
call fcn.0042704a
lea ecx, [ebp - 0x1c]
call fcn.00402988
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GdiplusStartup
push dword [ebp - 8]
call edi
push str.GdiplusShutdown
push dword [ebp - 8]
mov dword [0x496d7c], eax
call edi
push str.GdipLoadImageFromFile
push dword [ebp - 8]
mov dword [0x496d80], eax
call edi
push str.GdipDisposeImage
push dword [ebp - 8]
mov dword [0x496d90], eax
call edi
push str.GdipCreateFromHDC
push dword [ebp - 8]
mov dword [0x496d84], eax
call edi
push str.GdipDrawImageRectI
push dword [ebp - 8]
mov dword [0x496d88], eax
call edi
mov dword [0x496d8c], eax
cmp dword [0x496e14], ebx
jne 0x4183e3
cmp dword [0x496d90], ebx
je 0x4183e3
xor eax, eax
mov dword [ebp - 0x44], 1
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x44]
push eax
push 0x496e14
call dword [0x496d7c]
cmp dword [0x496dd0], ebx
jne 0x418405
cmp dword [0x496e14], ebx
je 0x418405
push 0x496de8
lea eax, [ebp - 0x49c]
push eax
call dword [0x496d90]
lea ecx, [ebp - 0x14]
call fcn.0042c3f7
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x49c]
push eax
call fcn.00434c96
add esp, 0xc
push dword [ebp - 0x14]
call esi
cmp byte [ebp - 1], bl
mov edi, str.SOFTWAREPELOGON
mov esi, 0x80000002
jne 0x41844e
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x14]
push 1
push str.LogoFile
push edi
push esi
call fcn.00427da9
add esp, 0x18
mov eax, dword [0x496dd0]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
push str.LogohWnd
push edi
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], 4
call fcn.00427d32
add esp, 0x18
cmp dword [ebp - 0x18], ebx
je 0x4184c9
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x418493
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x4184c9
mov eax, dword [0x496dd0]
cmp eax, ebx
je 0x4184bb
cmp ecx, eax
je 0x4184bb
push ebx
push 0x66
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
cmp ecx, ebx
je 0x4184c9
cmp dword [ebp + 8], ebx
jne 0x4184c9
mov dword [ebp + 8], ecx
jmp 0x4184db
cmp byte [ebp - 1], bl
jne 0x4184db
push dword [ebp - 0x14]
mov ecx, 0x496f4c
call fcn.004362a2
cmp dword [ebp + 8], ebx
je 0x41852f
cmp dword [0x496dd0], ebx
jne 0x4184fe
mov eax, dword [0x496de8]
cmp eax, ebx
je 0x4184fe
push eax
call dword [0x496d84]
mov dword [0x496de8], ebx
push ebx
push ebx
push 0x450
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov word [eax], bx
mov byte [0x496e0c], bl
call fcn.0042704a
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x418594
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov word [eax], bx
call fcn.0042704a
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 0x4975e4
push edi
call esi
push ebx
push 0x40fd77
push ebx
push 0x4815ac
push dword [0x496dd4]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
cmp dword [ebp - 8], ebx
je 0x418584
mov eax, dword [0x496de8]
cmp eax, ebx
mov dword [0x496d7c], ebx
je 0x418584
push eax
call dword [0x496d84]
mov dword [0x496de8], ebx
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [0x496dd0], ebx
call esi
lea ecx, [ebp - 0x24]
call fcn.0042704a
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 8