Function at 0x4304a0
Capabilities:
Extract resource via kernel32 functions
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c18c
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x58d214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 4], 1
push 0x546ce0
push str.IDR_QYZIP
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x2c], eax
push 0x546cfc
push str.IDR_7ZDLL
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0
je 0x43050b
cmp dword [ebp - 0x30], 0
jne 0x430532
mov byte [ebp - 0x16], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00407d30
mov al, byte [ebp - 0x16]
jmp 0x43092f
mov eax, dword [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x43056e
mov byte [ebp - 0x17], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00407d30
mov al, byte [ebp - 0x17]
jmp 0x43092f
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4305b2
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00407d30
mov al, byte [ebp - 0x18]
jmp 0x43092f
mov eax, dword [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x15], 1
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp + 8]
call fcn.0040b600
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x4306f2
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x430675
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.0040c200
add esp, 8
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48]
push edx
push str.__install_resource_path_WriteFile_suc_number_is
lea eax, [ebp - 0x90]
push eax
call fcn.00405930
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.0040b600
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x90]
call fcn.00407d30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.00407d30
jmp 0x4306e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0xd8]
push edx
call fcn.0040c200
add esp, 8
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x54]
push ecx
push 0x546d80
lea edx, [ebp - 0xc0]
push edx
call fcn.00405930
add esp, 0xc
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
call fcn.0040b600
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0xc0]
call fcn.00407d30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
call fcn.00407d30
mov byte [ebp - 0x15], 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4306ff
mov byte [ebp - 0x15], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
jne 0x43072e
mov byte [ebp - 0x19], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00407d30
mov al, byte [ebp - 0x19]
jmp 0x43092f
mov edx, dword [ebp - 0x30]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x43076a
mov byte [ebp - 0x1a], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00407d30
mov al, byte [ebp - 0x1a]
jmp 0x43092f
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4307ae
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 0x1b], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00407d30
mov al, byte [ebp - 0x1b]
jmp 0x43092f
mov edx, dword [ebp - 0x30]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x34], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp + 0x20]
call fcn.0040b600
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x4308ea
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43086d
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0040c200
add esp, 8
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x60]
push ecx
push 0x546dd8
lea edx, [ebp - 0xf0]
push edx
call fcn.00405930
add esp, 0xc
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
call fcn.0040b600
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0xf0]
call fcn.00407d30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x108]
call fcn.00407d30
jmp 0x4308de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x138]
push ecx
call fcn.0040c200
add esp, 8
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x70]
push eax
push 0x546e38
lea ecx, [ebp - 0x120]
push ecx
call fcn.00405930
add esp, 0xc
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
call fcn.0040b600
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x120]
call fcn.00407d30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call fcn.00407d30
mov byte [ebp - 0x15], 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4308f7
mov byte [ebp - 0x15], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dl, byte [ebp - 0x15]
mov byte [ebp - 0x1c], dl
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00407d30
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d48f1
mov esp, ebp
pop ebp
ret 0x30