Function at 0x4c9330
Capabilities:
Extract resource via kernel32 functions
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63184d
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x6bae70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x484], ecx
push 0xfffffffffffffff0
mov ecx, dword [ebp - 0x484]
call fcn.005105d0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0x494], eax
mov eax, dword [ebp - 0x494]
and eax, 0xff3fffff
mov dword [ebp - 0x494], eax
mov ecx, dword [ebp - 0x494]
or ecx, 0x4000000
or ecx, 0x2000000
push ecx
push 0xfffffffffffffff0
mov ecx, dword [ebp - 0x484]
call fcn.005105d0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x484]
call fcn.005105d0
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x20
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 0x484]
call fcn.005105d0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
mov ecx, dword [ebp - 0x484]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x484]
add ecx, 0x2c
call fcn.004bd000
cmp dword [ebp - 0x484], 0
je 0x4c9429
mov eax, dword [ebp - 0x484]
add eax, 0x24
mov dword [ebp - 0x4a0], eax
jmp 0x4c9433
mov dword [ebp - 0x4a0], 0
mov ecx, dword [ebp - 0x4a0]
push ecx
mov ecx, dword [ebp - 0x484]
add ecx, 0x2c
call fcn.004bbf30
lea ecx, [ebp - 0x1ec]
call fcn.004e4bd0
mov dword [ebp - 4], 0
call fcn.004bcf60
push eax
lea ecx, [ebp - 0xa4]
call fcn.004b8b50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.004b9c50
movzx edx, al
test edx, edx
je 0x4c9521
lea eax, [ebp - 0x270]
push eax
call fcn.004bcbc0
add esp, 4
mov dword [ebp - 0x4f0], eax
mov ecx, dword [ebp - 0x4f0]
mov dword [ebp - 0x4c0], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4c0]
push edx
lea ecx, [ebp - 0xa4]
call fcn.004b8e20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x270]
call fcn.004b8d30
lea eax, [ebp - 0x378]
push eax
mov ecx, dword [ebp - 0x484]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x484]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x4c8], eax
mov ecx, dword [ebp - 0x4c8]
mov dword [ebp - 0x4d0], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4d0]
call fcn.004b8f40
push eax
lea ecx, [ebp - 0xa4]
call fcn.004b91b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x378]
call fcn.004b8d30
lea ecx, [ebp - 0xa4]
call fcn.004b8f40
push eax
call fcn.004c3720
add esp, 4
mov edx, dword [ebp - 0x484]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x484]
mov edx, dword [eax + 0x2c]
call edx
mov dword [ebp - 0x49c], eax
cmp dword [ebp - 0x49c], 2
je 0x4c9565
cmp dword [ebp - 0x49c], 4
je 0x4c95bf
jmp 0x4c9761
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x484]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x484]
mov eax, dword [edx + 0x30]
call eax
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x4e0], ecx
mov byte [ebp - 4], 4
push 1
mov ecx, dword [ebp - 0x4e0]
call fcn.004b8f40
push eax
call fcn.004c3810
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x480]
call fcn.004b8d30
jmp 0x4c9761
push 0x63d5e0
mov edx, dword [ebp - 0x484]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x484]
mov edx, dword [eax + 0x34]
call edx
push eax
call fcn.004bcf40
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x48c], eax
cmp dword [ebp - 0x48c], 0
jne 0x4c9629
mov dword [ebp - 0x4e8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.004b8d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ec]
call fcn.004e2f30
mov eax, dword [ebp - 0x4e8]
jmp 0x4c99cf
mov dword [ebp - 0x488], 0
mov eax, dword [ebp - 0x48c]
push eax
call fcn.004bcf40
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x4a4], eax
cmp dword [ebp - 0x4a4], 0
jne 0x4c9698
mov ecx, dword [ebp - 0x48c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x4b0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.004b8d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ec]
call fcn.004e2f30
mov eax, dword [ebp - 0x4b0]
jmp 0x4c99cf
mov edx, dword [ebp - 0x48c]
push edx
call fcn.004bcf40
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x488], eax
cmp dword [ebp - 0x488], 0
jne 0x4c96f0
mov dword [ebp - 0x4d4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.004b8d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ec]
call fcn.004e2f30
mov eax, dword [ebp - 0x4d4]
jmp 0x4c99cf
mov eax, dword [ebp - 0x488]
push eax
call fcn.005d4157
add esp, 4
mov dword [ebp - 0x4b8], eax
mov ecx, dword [ebp - 0x4b8]
mov dword [0x6c4038], ecx
cmp dword [0x6c4038], 0
je 0x4c973e
mov edx, dword [ebp - 0x488]
push edx
mov eax, dword [ebp - 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [0x6c4038]
push ecx
call fcn.005e9ba0
add esp, 0xc
mov edx, dword [ebp - 0x48c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x488]
push eax
mov ecx, dword [0x6c4038]
push ecx
call fcn.004c3790
add esp, 8
mov dword [ebp - 0x490], 0
mov edx, dword [ebp - 0x484]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x484]
mov edx, dword [eax + 0x2c]
call edx
cmp eax, 3
jne 0x4c983f
lea eax, [ebp - 0x2f4]
push eax
mov ecx, dword [ebp - 0x484]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x484]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 0x4bc], eax
mov ecx, dword [ebp - 0x4bc]
mov dword [ebp - 0x4e4], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4e4]
call fcn.004b8f40
push eax
call fcn.005ebcf7
add esp, 4
push eax
lea ecx, [ebp - 0x4c4]
call fcn.004b8cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2f4]
call fcn.004b8d30
cmp dword [ebp - 0x484], 0
je 0x4c9800
mov edx, dword [ebp - 0x484]
add edx, 0x28
mov dword [ebp - 0x4ac], edx
jmp 0x4c980a
mov dword [ebp - 0x4ac], 0
push 0
mov eax, dword [ebp - 0x484]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x4ac]
push ecx
push 0x63d5f0
mov edx, dword [ebp - 0x4c4]
push edx
lea ecx, [ebp - 0x1ec]
call fcn.004e5630
mov dword [ebp - 0x490], eax
jmp 0x4c98e2
cmp dword [ebp - 0x484], 0
je 0x4c9859
mov eax, dword [ebp - 0x484]
add eax, 0x28
mov dword [ebp - 0x498], eax
jmp 0x4c9863
mov dword [ebp - 0x498], 0
lea ecx, [ebp - 0x3fc]
push ecx
mov edx, dword [ebp - 0x484]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x484]
mov edx, dword [eax + 0x24]
call edx
mov dword [ebp - 0x4dc], eax
mov eax, dword [ebp - 0x4dc]
mov dword [ebp - 0x4cc], eax
mov byte [ebp - 4], 6
push 0
mov ecx, dword [ebp - 0x484]
add ecx, 0x2c
push ecx
mov edx, dword [ebp - 0x498]
push edx
push 0
mov ecx, dword [ebp - 0x4cc]
call fcn.004b8f40
push ecx
mov ecx, esp
mov dword [ebp - 0x4f4], esp
push eax
call fcn.004b8ce0
lea ecx, [ebp - 0x1ec]
call fcn.004e5630
mov dword [ebp - 0x490], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3fc]
call fcn.004b8d30
cmp dword [ebp - 0x490], 0
jne 0x4c993d
push 0x10
push str.Duilib
push 0x63d608
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x490]
push eax
mov ecx, dword [ebp - 0x484]
add ecx, 0x2c
call fcn.004bc0b0
cmp dword [ebp - 0x484], 0
je 0x4c996c
mov ecx, dword [ebp - 0x484]
add ecx, 0x20
mov dword [ebp - 0x4a8], ecx
jmp 0x4c9976
mov dword [ebp - 0x4a8], 0
mov edx, dword [ebp - 0x4a8]
push edx
mov ecx, dword [ebp - 0x484]
add ecx, 0x2c
call fcn.004bbdb0
mov eax, dword [ebp - 0x484]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x484]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0x4b4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.004b8d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ec]
call fcn.004e2f30
mov eax, dword [ebp - 0x4b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005e9734
mov esp, ebp
pop ebp
ret 0x10