Function at 0x426980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534046
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x56adc0]
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
movzx ecx, word [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0x540a30
push ecx
xor edi, edi
push edi
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x4269d7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x4269d9
xor eax, eax
cmp eax, edi
je 0x4269fd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x44], eax
cmp ebx, edi
je 0x4269fd
cmp eax, edi
ja 0x426a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x447
lea edx, [ebp - 0x100]
push edx
mov ebx, str.env.cpp
call fcn.0041a6b0
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
je 0x426a69
lea edi, [esi + 0x10]
test edi, edi
je 0x426a33
lea eax, [esi + 0x20]
jmp 0x426a35
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
test edi, edi
je 0x426a4c
lea eax, [esi + 0x20]
jmp 0x426a4e
xor eax, eax
push str.failed_to_get_blob_for
push eax
call fcn.00407c44
mov eax, dword [ebp + 8]
add esp, 8
push eax
add esi, 0x20
push esi
call fcn.00428ab0
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a760
xor al, al
jmp 0x426d64
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
push eax
push ebx
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 4], 1
call fcn.00434b80
test al, al
jne 0x426b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44e
lea edx, [ebp - 0x100]
push edx
mov ebx, str.env.cpp
call fcn.0041a6b0
mov esi, eax
mov byte [ebp - 4], 2
test esi, esi
je 0x426b0b
lea edi, [esi + 0x10]
test edi, edi
je 0x426ad5
lea eax, [esi + 0x20]
jmp 0x426ad7
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
test edi, edi
je 0x426aee
lea eax, [esi + 0x20]
jmp 0x426af0
xor eax, eax
push str.failed_to_open_zip_with_len:
push eax
call fcn.00407c44
mov eax, dword [ebp - 0x44]
add esp, 8
push eax
add esi, 0x20
push esi
call fcn.00422730
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 1
call fcn.0041a760
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.00434980
xor al, al
jmp 0x426d64
mov esi, dword [ebp - 0x30]
xor edx, edx
mov ebx, 7
mov eax, esi
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x426b50
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404bd5
sub esp, 8
mov eax, esp
mov byte [ebp - 4], 3
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00434d40
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], 8
jb 0x426ba0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004f77ab
add esp, 4
mov ecx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
cmp ecx, edi
jne 0x426c5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x455
lea ecx, [ebp - 0x100]
push ecx
mov ebx, str.env.cpp
call fcn.0041a6b0
mov ebx, eax
mov byte [ebp - 4], 6
test ebx, ebx
je 0x426c28
lea edi, [ebx + 0x10]
test edi, edi
je 0x426bea
lea eax, [ebx + 0x20]
jmp 0x426bec
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
test edi, edi
je 0x426c03
lea eax, [ebx + 0x20]
jmp 0x426c05
xor eax, eax
push str.failed_to_start_unzipping
push eax
call fcn.00407c44
add esp, 8
test edi, edi
je 0x426c1c
lea eax, [ebx + 0x20]
jmp 0x426c1e
xor eax, eax
push esi
push eax
call fcn.00407c44
add esp, 8
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 5
call fcn.0041a760
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00423c50
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00434980
xor al, al
jmp 0x426d64
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], esp
cmp eax, edi
je 0x426c7d
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
push edi
push edi
lea ecx, [ebp - 0x40]
call fcn.00435e30
sub esp, 8
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], edi
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x30], esp
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp - 0x34]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], esp
cmp eax, edi
je 0x426cba
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
lea ecx, [ebp - 0x40]
call fcn.00434fb0
test al, al
jne 0x426d19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x45c
lea edx, [ebp - 0x1b8]
push edx
mov ebx, str.env.cpp
call fcn.0041a6b0
mov esi, eax
mov byte [ebp - 4], 7
call fcn.00405fba
test eax, eax
je 0x426d0e
lea ecx, [eax + 0x10]
test ecx, ecx
je 0x426cfe
add eax, 0x20
jmp 0x426d00
xor eax, eax
push str.failed_to_extract
push eax
call fcn.00407c44
add esp, 8
lea ecx, [ebp - 0x1b8]
jmp 0x426c2e
mov ecx, dword [ebp - 0x38]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp - 0x34]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], esp
cmp eax, edi
je 0x426d3f
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
push 1
call fcn.00434f10
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00423c50
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00434980
mov al, 1
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.004f6bad
mov esp, ebp
pop ebp
ret