Function at 0x470d70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7f61
mov eax, dword fs:[0]
push eax
mov eax, 0x11fc
call fcn.004bd600
mov eax, dword [0x4fe320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xfffffffffffffff0
call fcn.0044d250
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.0044d250
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x1038]
mov ecx, edi
push eax
call fcn.0044d250
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.0044d250
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push dword [edi + 4]
lea ebx, [edi + 0x2c]
mov ecx, ebx
call fcn.00475ac0
lea eax, [edi + 0x24]
mov ecx, ebx
push eax
call fcn.00474a40
lea ecx, [ebp - 0x1204]
call fcn.0049c040
mov eax, dword [edi]
lea ecx, [ebp - 0x10bc]
push ecx
mov ecx, edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x28]
call dword [eax + 0x24]
push 0
push ebx
push esi
push 0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00425880
push ecx
mov ecx, esp
push eax
call fcn.0040fbc0
lea ecx, [ebp - 0x1204]
call fcn.0049c710
lea ecx, [ebp - 0x10bc]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00471930
test esi, esi
jne 0x470fde
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1010]
lea ecx, [ebp - 0x1204]
push 0x400
push eax
call fcn.0049c7f0
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x810]
lea ecx, [ebp - 0x1204]
push 0x400
push eax
call fcn.0049c800
push 0x1d
xor eax, eax
mov dword [ebp - 0x1014], 7
push str.load_resource_errr._location:
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x1018], esi
mov word [ebp - 0x1028], ax
call fcn.00408780
mov byte [ebp - 4], 2
cmp word [ebp - 0x1010], si
jne 0x470f35
xor eax, eax
jmp 0x470f4f
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x470f40
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1028]
call fcn.00419d10
push 5
push str._msg:
lea ecx, [ebp - 0x1028]
call fcn.00419d10
cmp word [ebp - 0x810], 0
jne 0x470f82
xor ecx, ecx
jmp 0x470f9f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
jmp 0x470f90
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470f90
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x1028]
call fcn.00419d10
cmp dword [ebp - 0x1014], 8
lea eax, [ebp - 0x1028]
push 0x10
cmovae eax, dword [ebp - 0x1028]
push str.Duilib
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call fcn.00474c70
lea eax, [edi + 0x20]
mov ecx, ebx
push eax
call fcn.004748f0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
lea ecx, [ebp - 0x1204]
mov dword [ebp - 4], 0xffffffff
call fcn.0049d860
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bce6c
mov esp, ebp
pop ebp
ret 0x10