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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x454ebe
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x46d674]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x46d674]
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 [0x4700b4]
xor esi, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ecx
cmp eax, esi
je 0x414011
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x41401d
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
cmp edi, esi
jne 0x41404c
mov edx, dword [0x4700bc]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41403d
mov dword [0x4700bc], eax
jmp 0x414042
mov eax, dword [0x4700bc]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp eax, esi
je 0x414071
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x414071
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x414071
push esi
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x20], 1
mov eax, dword [ebx + 0x80]
cmp eax, esi
je 0x41425e
cmp word [eax], si
je 0x41425e
cmp byte [ebx + 0x88], 0
je 0x414271
lea eax, [esp + 0x64]
push eax
call fcn.00439a30
mov dword [esp + 0xf0], esi
call fcn.0040f210
mov edx, dword [ebx + 0x80]
mov ecx, dword [eax]
push esi
push esi
call fcn.0040cfd0
push eax
lea ecx, [esp + 0x70]
call fcn.0043b620
cmp byte [esp + 0xa8], 0
jne 0x414188
lea eax, [esp + 0x64]
call fcn.0040b430
mov edi, eax
mov esi, dword [edi + 0x94]
lea eax, [edi + 0x44]
cmp esi, eax
je 0x41412e
test esi, esi
je 0x41412e
mov edi, edi
mov edx, 0x10
cmp dword [esi + 0x44], edx
jb 0x4140ff
mov ecx, dword [esi + 0x30]
jmp 0x414102
lea ecx, [esi + 0x30]
cmp dword [esi + 0x28], edx
lea eax, [esi + 0x14]
jb 0x41410c
mov eax, dword [eax]
mov edx, dword [ebx]
push ecx
push eax
mov eax, dword [edx + 0x44]
mov ecx, ebx
call eax
mov eax, dword [esi + 0x50]
cmp dword [eax + 0x40], 0
jne 0x414128
cmp dword [eax + 0x24], 0
jne 0x414128
xor eax, eax
mov esi, eax
test eax, eax
jne 0x4140f0
mov esi, dword [edi + 0x18]
test esi, esi
je 0x41414d
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x414242
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x414135
xor eax, eax
mov esi, eax
test eax, eax
je 0x414188
push 0
push ebx
push esi
call fcn.0041a5e0
mov esi, dword [esi + 0x40]
add esp, 0xc
test esi, esi
je 0x414180
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x414250
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x414168
xor eax, eax
mov esi, eax
test eax, eax
jne 0x414155
cmp dword [esp + 0xc4], 0x10
mov dword [esp + 0x64], vtable.TiXmlDocument.0
jb 0x4141aa
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0043e981
add esp, 4
mov edi, 0xf
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
mov dword [esp + 0x64], vtable.TiXmlNode.0
mov dword [esp + 0xf0], 2
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x4141f5
mov ecx, esi
mov edx, dword [ecx]
mov eax, dword [edx]
mov esi, dword [esi + 0x40]
push 1
call eax
test esi, esi
jne 0x4141e4
cmp dword [esp + 0x98], 0x10
jb 0x41420f
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0043e981
add esp, 4
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xf0], 0xffffffff
mov dword [esp + 0x94], 0
mov byte [esp + 0x84], 0
mov dword [esp + 0x64], vtable.TiXmlBase.0
jmp 0x414271
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x41414f
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x414182
cmp byte [ebx + 0x88], 0
je 0x414271
mov edx, dword [ebx]
mov eax, dword [edx + 0x54]
push ebx
mov ecx, ebx
call eax
mov eax, dword [0x470100]
test eax, eax
je 0x41427f
cmp eax, 1
jne 0x4142d2
push 0
push 1
push 0x470100
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x4142b4
call fcn.0040f490
mov esi, eax
mov dword [0x470100], esi
test esi, esi
je 0x4142b0
push 0x40f450
call fcn.0043d810
add esp, 4
mov eax, esi
jmp 0x4142d2
mov eax, dword [0x470100]
cmp eax, 1
jne 0x4142d2
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [0x470100]
cmp eax, 1
je 0x4142c4
mov edx, dword [ebx + 0x20]
mov ecx, dword [eax]
call fcn.0040c830
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x10]
push ebx
push ecx
mov ecx, dword [ebx + 0xc]
push 0
push edi
push edx
push ecx
push 0
push 0
push 0x86030000
push eax
push str.LiteUI_Window
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x41431c
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4145ba
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 0x41433a
mov dword [0x4700bc], esi
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x41435c
cmp word [eax], 0
je 0x41435c
cmp byte [ebx + 0x88], 0
je 0x41435c
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
call edx
mov esi, dword [0x4700c0]
mov byte [ebx + 0x88], 0
mov dword [0x4700c4], 0
test esi, esi
je 0x4143b5
xor eax, eax
mov dword [0x4700c0], eax
mov dword [0x4700c8], eax
lea edi, [eax + 6]
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 0x414386
mov eax, dword [ebx + 0x9c]
mov edx, dword [eax + 4]
lea ecx, [ebx + 0x9c]
push ebx
call edx
push ebx
call fcn.00413de0
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 0x414450
mov edi, dword [esp + 0x2c]
lea ebx, [ebx]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x414445
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 0x414445
mov edx, dword [ebx]
mov eax, dword [edx + 0x60]
push esi
mov ecx, ebx
call eax
inc esi
test al, al
jne 0x414410
mov byte [esp + 0x17], al
mov dword [esp + 0x18], esi
lea esp, [esp]
cmp byte [ebx + 0x86], 0
je 0x414561
mov ecx, dword [ebx + 0x78]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x414543
push 0
push 0
push 0
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x414526
test eax, eax
je 0x41454d
mov eax, dword [0x4700b8]
test eax, eax
je 0x4144db
xor esi, esi
lea ebx, [eax + 0xc]
mov dword [esp + 0x28], 0
cmp dword [ebx], esi
jle 0x4144db
lea edi, [eax + 8]
mov edi, edi
test esi, esi
js 0x4144d6
cmp esi, dword [edi + 4]
jge 0x4144d6
mov eax, dword [edi]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x4144d6
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x4c]
push eax
call edx
test al, al
jne 0x4144f1
inc esi
cmp esi, dword [ebx]
jl 0x4144b0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [esp + 0x4c]
cmp eax, 0x118
ja 0x41450a
je 0x41451e
cmp eax, 0xf
je 0x41451e
cmp eax, 0xa0
jmp 0x41450f
cmp eax, 0x200
je 0x41451e
xor esi, esi
mov byte [esp + 0x17], 1
mov dword [esp + 0x18], esi
jmp 0x414522
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x414450
jmp 0x414554
mov dword [ebx + 0x8c], 2
mov byte [ebx + 0x86], 0
cmp byte [ebx + 0x86], 0
jne 0x4143ff
cmp dword [esp + 0x20], 0
mov esi, dword [esp + 0x1c]
mov byte [ebx + 0x86], 0
je 0x414580
test esi, esi
je 0x41459c
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
test esi, esi
je 0x41459c
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41459c
mov dword [0x4700bc], esi
mov eax, dword [ebx + 0x78]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4145b4
mov ecx, dword [ebx + 0x78]
push ecx
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.0043e417
mov esp, ebp
pop ebp
ret 4