Function at 0x1003b790
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10098538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push str.BGN_UnZip
push 1
call fcn.1006ac00
xor ebx, ebx
add esp, 8
mov dword [esp + 0x20], ebx
xor edi, edi
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ebx
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x44
push 0x40
mov byte [esp + 0x38], 1
call ebp
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x1003b82a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xaf1
push str.Unzip__d___d
push 4
call fcn.1006ac00
mov ebp, dword [esp + 0x28]
add esp, 0x10
jmp 0x1003ba30
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebx
jne 0x1003b845
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xaf4
jmp 0x1003b87a
push 0x2c
push 0x40
call ebp
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x1003b861
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xaf7
jmp 0x1003b87a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
cmp edi, ebx
jne 0x1003b892
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xafa
push str.Unzip__d___d
push 4
call fcn.1006ac00
mov ebp, dword [esp + 0x28]
add esp, 0x10
jmp 0x1003b9fc
push str.unz32dll.dll
mov dword [edi + 0xc], 0x1003a8f0
mov dword [edi], 0x1003a900
mov dword [edi + 4], ebx
mov dword [edi + 8], 0x10070730
mov dword [edi + 0x10], 0x1003a910
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, ebx
jne 0x1003b91b
lea ecx, [esp + 0x10]
call fcn.10001ff0
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x34], 2
call fcn.100380a0
add esp, 4
push 0x1009e1a8
lea ecx, [esp + 0x14]
call fcn.100033b0
push str.unz32dll.dll
lea ecx, [esp + 0x14]
call fcn.100033b0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x10]
mov ebp, eax
mov byte [esp + 0x30], 1
call fcn.10002010
cmp ebp, ebx
je 0x1003b9e8
push str.Wiz_SingleEntryUnzip
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
call fcn.10002fd0
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
call fcn.10002fd0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push edi
push esi
push ebx
push ebx
mov eax, 1
push ebx
push ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x28], eax
mov dword [esi], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], edx
call dword [esp + 0x3c]
cmp eax, ebx
je 0x1003b994
mov eax, dword [esp + 0x14]
push eax
push str.Unzip__s_Failed
jmp 0x1003b9f2
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push edi
push ecx
push esi
push edx
call fcn.1003a920
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.END_UnZip
push 1
call fcn.1006ac00
add esp, 8
lea ecx, [esp + 0x18]
call fcn.10002010
lea ecx, [esp + 0x14]
call fcn.10002010
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push str.unz32dll.dll
push str.Could_not_load__s
push 4
call fcn.1006ac00
add esp, 0xc
cmp esi, ebx
je 0x1003ba0b
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x1003ba30
cmp edi, ebx
je 0x1003ba29
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.END_UnZip
push 1
call fcn.1006ac00
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x30], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1003ba68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003ba8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret