Function at 0x413320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dd23e
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x5246f0]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x5246f0]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [0x52a8b0]
xor edi, edi
mov dword [esp + 0x20], ecx
cmp eax, edi
je 0x41337d
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x413389
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edi
cmp esi, edi
jne 0x4133b8
mov edx, dword [0x52a8b8]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4133a9
mov dword [0x52a8b8], eax
jmp 0x4133ae
mov eax, dword [0x52a8b8]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp eax, edi
je 0x4133dd
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x4133dd
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4133dd
push edi
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x24], 1
mov eax, dword [ebx + 0x80]
cmp eax, edi
je 0x413569
cmp word [eax], di
je 0x413569
cmp byte [ebx + 0x88], 0
je 0x41357c
lea eax, [esp + 0x64]
push eax
call fcn.00444030
mov dword [esp + 0xf0], edi
call fcn.0041eea0
mov edx, dword [ebx + 0x80]
mov ecx, dword [eax]
push edi
push edi
call fcn.0041cc30
push eax
lea ecx, [esp + 0x70]
call fcn.004413c0
cmp byte [esp + 0xa8], 0
jne 0x4134ef
lea eax, [esp + 0x64]
call fcn.00411c00
mov esi, dword [eax + 0x94]
mov dword [esp + 0x18], eax
add eax, 0x44
cmp esi, eax
je 0x413492
test esi, esi
je 0x413492
lea esp, [esp]
lea ecx, [esi + 0x30]
call fcn.00404d10
lea ecx, [esi + 0x14]
mov edi, eax
call fcn.00404d10
mov edx, dword [ebx]
push edi
push eax
mov eax, dword [edx + 0x44]
mov ecx, ebx
call eax
mov esi, dword [esi + 0x50]
cmp dword [esi + 0x40], 0
jne 0x41348e
cmp dword [esi + 0x24], 0
jne 0x41348e
xor esi, esi
test esi, esi
jne 0x413460
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx + 0x18]
test esi, esi
je 0x4134b8
lea ecx, [ecx]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x413550
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x4134a0
xor eax, eax
mov esi, eax
test eax, eax
je 0x4134ef
push 0
push ebx
push esi
call fcn.004225d0
mov esi, dword [esi + 0x40]
add esp, 0xc
test esi, esi
je 0x4134e7
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x41355e
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x4134d3
xor eax, eax
mov esi, eax
test eax, eax
jne 0x4134c0
lea ecx, [esp + 0xb0]
mov dword [esp + 0x64], vtable.TiXmlDocument.0
call fcn.00405520
mov dword [esp + 0x64], vtable.TiXmlNode.0
mov dword [esp + 0xf0], 2
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x413531
mov edi, edi
mov ecx, esi
mov edx, dword [ecx]
mov eax, dword [edx]
mov esi, dword [esi + 0x40]
push 1
call eax
test esi, esi
jne 0x413520
lea ecx, [esp + 0x84]
call fcn.00405520
mov esi, dword [esp + 0x1c]
mov dword [esp + 0xf0], 0xffffffff
xor edi, edi
jmp 0x41357c
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x4134ba
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x4134e9
cmp byte [ebx + 0x88], 0
je 0x41357c
mov edx, dword [ebx]
mov eax, dword [edx + 0x54]
push ebx
mov ecx, ebx
call eax
call fcn.0041eea0
mov edx, dword [ebx + 0x20]
mov ecx, dword [eax]
call fcn.0041c4f0
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx + 0x10]
push ebx
push ecx
mov ecx, dword [ebx + 0xc]
push edi
push esi
push edx
push ecx
push edi
push edi
push 0x86030000
push eax
push str.LiteUI_Window
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esp + 0x20], eax
cmp eax, edi
jne 0x4135c7
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x41385c
mov edx, dword [ebx + 0x78]
push edx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov esi, dword [ebx + 0x78]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4135e5
mov dword [0x52a8b8], esi
mov eax, dword [ebx + 0x80]
cmp eax, edi
je 0x413606
cmp word [eax], di
je 0x413606
cmp byte [ebx + 0x88], 0
je 0x413606
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
call edx
mov esi, dword [0x52a8bc]
mov byte [ebx + 0x88], 0
mov dword [0x52a8c0], edi
cmp esi, edi
je 0x41365f
xor eax, eax
mov dword [0x52a8bc], eax
mov dword [0x52a8c4], eax
lea edi, [eax + 6]
lea esp, [esp]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov dword [esp + 0x34], edi
call edx
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x413630
mov eax, dword [ebx + 0x9c]
mov edx, dword [eax + 4]
lea ecx, [ebx + 0x9c]
push ebx
call edx
push ebx
call fcn.00413150
mov eax, dword [ebx + 0x78]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 0x78]
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov edx, dword [ebx + 0x78]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
xor esi, esi
mov byte [ebx + 0x86], 1
mov byte [esp + 0x17], 1
mov dword [esp + 0x18], esi
cmp byte [esp + 0x17], 0
je 0x4136f0
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4136e9
push 0
push 0
push 0
push 0
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4136e9
mov edx, dword [ebx]
mov eax, dword [edx + 0x60]
push esi
mov ecx, ebx
call eax
inc esi
test al, al
jne 0x4136b4
mov byte [esp + 0x17], al
mov dword [esp + 0x18], esi
lea ecx, [ecx]
cmp byte [ebx + 0x86], 0
je 0x413803
mov ecx, dword [ebx + 0x78]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4137e5
push 0
push 0
push 0
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x4137c8
test eax, eax
je 0x4137ef
mov eax, dword [0x52a8b4]
test eax, eax
je 0x413781
lea ecx, [eax + 0xc]
xor esi, esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], ecx
cmp dword [ecx], esi
jle 0x413781
lea edi, [eax + 8]
test esi, esi
js 0x413778
cmp esi, dword [edi + 4]
jge 0x413778
mov eax, dword [edi]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x413778
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x4c]
push eax
call edx
test al, al
jne 0x413797
mov eax, dword [esp + 0x28]
inc esi
cmp esi, dword [eax]
jl 0x413752
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [esp + 0x4c]
cmp eax, 0x118
ja 0x4137b0
je 0x4137c4
cmp eax, 0xf
je 0x4137c4
cmp eax, 0xa0
jmp 0x4137b5
cmp eax, 0x200
je 0x4137c4
xor esi, esi
mov byte [esp + 0x17], 1
mov dword [esp + 0x18], esi
jmp 0x4137c8
mov esi, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4136f0
jmp 0x4137f6
mov dword [ebx + 0x8c], 2
mov byte [ebx + 0x86], 0
cmp byte [ebx + 0x86], 0
jne 0x4136a9
cmp dword [esp + 0x24], 0
mov esi, dword [esp + 0x1c]
mov byte [ebx + 0x86], 0
je 0x413822
test esi, esi
je 0x41383e
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
test esi, esi
je 0x41383e
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41383e
mov dword [0x52a8b8], esi
mov ecx, dword [ebx + 0x78]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x413856
mov edx, dword [ebx + 0x78]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x8c]
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0045f522
mov esp, ebp
pop ebp
ret 4