Function at 0x443010
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28
mov edx, dword [eax - 0xc]
push ebx
push ebp
push esi
push edi
push ecx
test edx, edx
mov ecx, esp
jl 0x443037
mov dword [ecx], eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x443049
mov edx, dword [0x46b21c]
mov dword [ecx], edx
mov eax, dword [esp + 0x40]
push eax
call fcn.00402e60
lea ecx, [esp + 0x14]
push ecx
call fcn.00442de0
mov edx, dword [0x46b21c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, 0x47f7f4
add esp, 8
test eax, eax
mov dword [esp + 0x28], edx
je 0x4430a5
push eax
call edi
mov esi, eax
test esi, esi
je 0x4430a5
push esi
lea ecx, [esp + 0x2c]
call fcn.00401ce0
test eax, eax
je 0x4430a5
mov ecx, dword [esp + 0x28]
inc esi
push esi
push 0x47f7f4
push ecx
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
call fcn.00401f50
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.0045a1b7
add esp, 8
test eax, eax
je 0x443438
mov ecx, dword [0x46b21c]
mov edx, 0x47f7f0
test edx, edx
mov dword [esp + 0x14], ecx
je 0x443108
push edx
call edi
mov esi, eax
test esi, esi
je 0x443108
push esi
lea ecx, [esp + 0x18]
call fcn.00401ce0
test eax, eax
je 0x443108
mov eax, dword [esp + 0x14]
inc esi
push esi
push 0x47f7f0
push eax
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401f50
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0045a1b7
mov edx, dword [0x46b220]
add esp, 8
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
mov eax, dword [esp + 0x14]
sete bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x443150
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x443150
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
test bl, bl
jne 0x443438
mov eax, dword [0x46b21c]
mov ecx, 0x47f7ec
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x4431a0
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4431a0
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ce0
test eax, eax
je 0x4431a0
mov edx, dword [esp + 0x18]
inc esi
push esi
push 0x47f7ec
push edx
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
call fcn.00401f50
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0045a1b7
mov ecx, dword [0x46b220]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x18]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4431e2
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4431e2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
test bl, bl
jne 0x443438
mov ecx, dword [0x46b21c]
mov edx, 0x47f7e8
test edx, edx
mov dword [esp + 0x1c], ecx
je 0x443233
push edx
call edi
mov esi, eax
test esi, esi
je 0x443233
push esi
lea ecx, [esp + 0x20]
call fcn.00401ce0
test eax, eax
je 0x443233
mov eax, dword [esp + 0x1c]
inc esi
push esi
push 0x47f7e8
push eax
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00401f50
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0045a1b7
mov edx, dword [0x46b220]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
sete bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x443275
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x443275
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
test bl, bl
jne 0x443438
mov eax, dword [0x46b21c]
mov ecx, 0x47f7e4
test ecx, ecx
mov dword [esp + 0x20], eax
je 0x4432c5
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4432c5
push esi
lea ecx, [esp + 0x24]
call fcn.00401ce0
test eax, eax
je 0x4432c5
mov edx, dword [esp + 0x20]
inc esi
push esi
push 0x47f7e4
push edx
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00401f50
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0045a1b7
mov ecx, dword [0x46b220]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x20]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x443307
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x443307
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
test bl, bl
jne 0x443438
mov ecx, dword [0x46b21c]
mov edx, 0x47f7e0
test edx, edx
mov dword [esp + 0x24], ecx
je 0x443358
push edx
call edi
mov esi, eax
test esi, esi
je 0x443358
push esi
lea ecx, [esp + 0x28]
call fcn.00401ce0
test eax, eax
je 0x443358
mov eax, dword [esp + 0x24]
inc esi
push esi
push 0x47f7e0
push eax
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x24]
push 0xffffffffffffffff
call fcn.00401f50
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0045a1b7
mov edx, dword [0x46b220]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x24]
sete bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x44339a
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x44339a
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
test bl, bl
jne 0x443438
push 0x47f7dc
lea ecx, [esp + 0x30]
call fcn.00402a90
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0045a1b7
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
sete bl
call fcn.00401e80
test bl, bl
jne 0x443438
push 0x47f7d8
lea ecx, [esp + 0x34]
call fcn.00402a90
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.0045a1b7
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call fcn.00401e80
test bl, bl
jne 0x443438
push 0x47f7d4
lea ecx, [esp + 0x38]
call fcn.00402a90
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0045a1b7
add esp, 8
lea ecx, [esp + 0x34]
test eax, eax
sete bl
call fcn.00401e80
test bl, bl
je 0x44343a
mov bl, 1
lea ecx, [esp + 0x28]
call fcn.00401e80
test bl, bl
je 0x4434ee
mov eax, dword [esp + 0x3c]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4434ce
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [esp + 0x34]
push 0
mov esi, eax
push ecx
push ebx
push esi
push edi
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4434ce
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
lea edx, [esp + 0x34]
push edx
push 0
push ebx
push eax
call fcn.00442fb0
add esp, 0x10
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4434d2
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
call fcn.00401e80
lea ecx, [esp + 0x3c]
call fcn.00401e80
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
lea ecx, [esp + 0x10]
call fcn.00401e80
lea ecx, [esp + 0x3c]
call fcn.00401e80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret