Function at 0x409470
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43df90
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x45506c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x60
call fcn.0040da71
add esp, 4
mov esi, eax
mov dword [ebp - 0x6c], esi
push 0x60
push 0
push esi
call fcn.00425850
mov dword [esi + 0x28], 0
xor eax, eax
mov dword [esi + 0x2c], 7
add esp, 0xc
mov word [esi + 0x18], ax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 7
mov word [esi + 0x30], ax
mov dword [esi + 0xc], eax
mov dword [esi], eax
mov dword [esi + 8], 5
mov byte [esi + 0x5c], al
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x58], eax
mov dword [edi], esi
mov dword [esi + 4], 0xc8
mov eax, dword [edi]
push 7
push str.Loading
mov dword [eax], 0xc8
mov ecx, dword [edi]
add ecx, 0x18
call fcn.00408120
mov ecx, dword [edi]
push 0xd
add ecx, 0x30
push str.LDefineWindow
call fcn.00408120
mov eax, dword [edi]
push 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0
mov dword [eax + 8], 5
lea eax, [ebp - 0x24]
push eax
mov eax, dword [edi]
add eax, 0x48
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov ecx, dword [edi]
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [0x4585a4], edi
mov dword [ecx + 0x14], eax
mov ecx, esp
push 6
xor eax, eax
push 0x44de68
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00408120
mov ecx, edi
call fcn.004097b0
test al, al
jne 0x4095e1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0x10
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.Load_gif_failure
mov byte [ecx], al
call fcn.004067e0
push 3
push ecx
mov dword [ebp - 4], 0
call fcn.00402f50
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.00404830
mov ecx, dword [edi]
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x58], 0x30
mov dword [ebp - 0x54], 0x20
mov dword [ebp - 0x50], 0x409920
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov eax, dword [ecx + 0x14]
push 0x6b
mov dword [ebp - 0x44], eax
push dword [ecx + 0x14]
call esi
push 0x7f00
push 0
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi]
add eax, 0x30
mov dword [ebp - 0x38], 6
mov dword [ebp - 0x34], 0
cmp dword [eax + 0x14], 8
jb 0x409647
mov eax, dword [eax]
push 0x6c
push dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
call esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov eax, dword [edi]
cmp dword [eax + 0x2c], 8
lea edx, [eax + 0x18]
jb 0x40966b
mov edx, dword [edx]
cmp dword [eax + 0x44], 8
lea ecx, [eax + 0x30]
jb 0x409676
mov ecx, dword [ecx]
push 0
push dword [eax + 0x14]
push 0
push 0
push dword [eax + 4]
push dword [eax]
push 0x80000000
push 0x80000000
push 0x80000000
push edx
push ecx
push 0x800a0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x4096bd
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
mov ecx, dword [edi]
mov byte [ecx + 0x5c], 1
mov ecx, dword [edi]
push dword [ecx + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x409702
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0x14
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.create_window_failed
mov byte [ecx], 0
call fcn.004067e0
push 3
push ecx
mov dword [ebp - 4], 1
call fcn.00402f50
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.00404830
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [edi]
mov ebx, eax
lea eax, [ebp - 0x68]
push eax
push dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi]
push 8
mov dword [eax + 0x50], esi
mov eax, dword [edi]
mov dword [eax + 0x54], ebx
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x409774
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
xorps xmm0, xmm0
push ebx
movq qword [esi], xmm0
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
jmp 0x409776
xor esi, esi
mov eax, dword [edi]
push 2
mov dword [eax + 0x58], esi
mov eax, dword [edi]
mov esi, dword [eax + 0x58]
push dword [esi]
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
test eax, eax
je 0x409791
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d826
mov esp, ebp
pop ebp
ret 4