Function at 0x4a9530
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51fac6
mov eax, dword fs:[0]
push eax
mov eax, 0x1178
call fcn.004eed40
mov eax, dword [0x55e904]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xfffffffffffffff0
call fcn.004aa7b0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.004aa7b0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x1038]
mov ecx, edi
push eax
call fcn.004aa7b0
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x102c]
mov edx, dword [ebp - 0x1034]
sub eax, edx
mov ecx, dword [ebp - 0x1038]
push 0x20
push eax
mov eax, dword [ebp - 0x1030]
sub eax, ecx
push eax
push edx
push ecx
push 0
mov ecx, edi
call fcn.004aa7b0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push dword [edi + 4]
lea esi, [edi + 0x2c]
mov ecx, esi
call fcn.004a3960
mov ecx, edi
lea eax, [edi + 0x24]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, esi
call fcn.004a2760
lea ecx, [ebp - 0x1180]
call fcn.004cc790
mov eax, dword [edi]
lea ecx, [ebp - 0x94]
push ecx
mov ecx, edi
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x24]
call eax
xor edx, edx
mov byte [ebp - 4], 1
push 0
push esi
test edi, edi
lea ecx, [edi + 0x28]
cmove ecx, edx
push ecx
push edx
push ecx
mov ecx, eax
mov esi, esp
call fcn.004117c0
push eax
mov ecx, esi
call fcn.0040cd40
lea ecx, [ebp - 0x1180]
call fcn.004cce40
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.004aa080
test esi, esi
jne 0x4a9722
push 0x800
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.004f05a0
add esp, 0xc
lea eax, [ebp - 0x810]
lea ecx, [ebp - 0x1180]
push 0x400
push eax
call fcn.004ccf10
push 0x800
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.004f05a0
add esp, 0xc
lea eax, [ebp - 0x1010]
lea ecx, [ebp - 0x1180]
push 0x400
push eax
call fcn.004ccf20
push str.load_resource_errr._location:
lea ecx, [ebp - 0x1028]
call fcn.004038b0
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1028]
call fcn.00403750
push str._msg:
lea ecx, [ebp - 0x1028]
call fcn.00403750
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1028]
call fcn.00403750
push 0x10
push str.Duilib
lea ecx, [ebp - 0x1028]
call fcn.00403740
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
lea ecx, [edi + 0x2c]
call fcn.004a2c60
lea eax, [edi + 0x20]
push eax
lea ecx, [edi + 0x2c]
call fcn.004a2610
lea ecx, [edi + 0x2c]
call fcn.004a8ff0
test al, al
je 0x4a97b9
push str.rootLayout
lea ecx, [edi + 0x2c]
call fcn.004a2dd0
test eax, eax
je 0x4a97b9
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov ecx, eax
call dword [edx + 0x68]
mov esi, 0x24
call fcn.004a8fe0
test al, al
mov ecx, 0x36
lea eax, [ebp - 0x1020]
push eax
push dword [edi + 4]
cmovne esi, ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1014]
sub eax, dword [ebp - 0x101c]
push 0x1e
sub eax, esi
push eax
mov eax, dword [ebp - 0x1018]
sub eax, dword [ebp - 0x1020]
sub eax, esi
push eax
push 0
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
lea ecx, [ebp - 0x1180]
call fcn.004cb6a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ee450
mov esp, ebp
pop ebp
ret 0x10