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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46010b
mov eax, dword fs:[0]
push eax
sub esp, 0x3cc
mov eax, dword [0x47201c]
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
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, esi
mov edi, ecx
mov dword [ebp - 0x3cc], ebx
mov dword [ebp - 0x3c8], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43fb56
sub eax, edx
sar eax, 1
mov ecx, 0x46b99c
lea eax, [esi + eax*2 - 8]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43fb96
cmp dx, bx
je 0x43fb92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43fb96
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x43fb70
xor eax, eax
jmp 0x43fb9b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x43fbef
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43fba4
sub eax, edx
sar eax, 1
mov ecx, str..ico
lea eax, [esi + eax*2 - 8]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43fbe6
cmp dx, bx
je 0x43fbe2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43fbe6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x43fbc0
xor eax, eax
jmp 0x43fbeb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x43fbf9
mov dword [ebp - 0x3cc], 1
cmp edi, ebx
jne 0x43ffff
xor ecx, ecx
mov word [ebp - 0xc4], cx
mov ecx, dword [0x473af8]
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
mov edi, ecx
cmp ecx, ebx
jne 0x43fc27
mov edi, 0x463b38
mov ecx, edi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x43fc30
sub ecx, esi
sar ecx, 1
mov esi, ecx
cmp esi, 0x3f
jl 0x43fc60
lea edx, [esi + esi + 2]
push edx
push ebx
mov dword [ebp - 0xc8], ebx
call fcn.00458625
add esp, 8
mov dword [ebp - 0xc8], eax
push esi
push edi
push eax
call fcn.00459158
mov ecx, dword [ebp - 0xc8]
xor eax, eax
add esp, 0xc
mov word [ecx + esi*2], ax
mov dword [ebp - 4], ebx
mov eax, dword [0x473b80]
cmp word [eax], bx
lea ebx, [ebp - 0xc8]
jne 0x43fd66
mov edx, dword [ebp + 8]
push edx
call fcn.004188d0
mov eax, dword [ebp - 0xc8]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43fce6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
cmp eax, ecx
je 0x440077
push eax
call fcn.00450199
add esp, 4
jmp 0x440077
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x43fd1e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
cmp eax, edx
je 0x440077
push eax
call fcn.00450199
add esp, 4
jmp 0x440077
push edi
mov dword [ebp - 0x3d0], 0
call fcn.0044f611
add esp, 4
push 0
mov ebx, eax
lea eax, [ebp - 0x3d0]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d0], edi
je 0x43ffd9
push ebx
call fcn.0044f726
add esp, 4
jmp 0x43fcbd
push eax
call fcn.004188d0
cmp byte [0x47a4eb], 0
je 0x43fd86
mov esi, dword [0x47a4fc]
mov dword [ebp - 0x3bc], esi
jmp 0x43fed2
mov ebx, dword [ebp - 0xc8]
push 0x340
call fcn.0044f78d
add esp, 4
test eax, eax
je 0x43fdb3
or ecx, 0xffffffff
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 0x134], ecx
mov esi, eax
jmp 0x43fdb8
xor esi, esi
or ecx, 0xffffffff
cmp dword [esi], 0
jne 0x43fe86
cmp dword [esi + 4], ecx
jne 0x43fe86
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x43fde0
mov edx, dword [0x46b984]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
mov dword [edi], edx
mov dword [ebp - 0x3bc], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3bc], eax
cmp eax, 0xffffffff
je 0x43fe7f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
push 0x1c
sete bl
call fcn.0044f78d
mov edi, eax
mov byte [edi], 1
mov byte [edi + 1], bl
mov eax, dword [ebp - 0x3bc]
add esp, 4
mov dword [edi + 4], eax
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
test bl, bl
je 0x43fe6f
mov ecx, dword [ebp - 0x3bc]
push 1
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0xc], eax
mov eax, edi
call fcn.0043d380
mov dword [esi], eax
mov eax, dword [0x47a504]
jmp 0x43fe8b
mov eax, 0x200
jmp 0x43fe8b
mov eax, 0x1000000
mov dword [0x47a508], eax
test eax, eax
je 0x43feb7
push esi
call fcn.0044f731
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
add esp, 4
cmp eax, edx
jmp 0x43fcd2
push 8
call fcn.0044f78d
mov dword [eax + 4], esi
add esp, 4
mov dword [eax], 1
mov esi, eax
mov dword [ebp - 0x3bc], eax
test esi, esi
jne 0x43fef0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
cmp eax, edx
jmp 0x43fcd2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3b0]
push eax
push esi
lea edx, [ebp - 0x3c0]
call fcn.0043ec50
add esp, 8
test eax, eax
jne 0x43fcbd
mov edi, dword [ebp - 0x184]
test edi, edi
jne 0x43ff35
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
cmp eax, edx
jmp 0x43fcd2
push edi
call fcn.0044f611
add esp, 4
cmp dword [esi], 1
mov ebx, eax
je 0x43ff51
mov dword [0x47a508], 0x80000
jmp 0x43ff72
mov eax, dword [ebp - 0x3c0]
mov ecx, dword [esi + 4]
push edi
push ebx
push eax
call fcn.0043ea40
mov dword [0x47a508], eax
test eax, eax
je 0x43ff94
cmp eax, 0x600
je 0x43ff94
push ebx
call fcn.0044f726
add esp, 4
cmp byte [0x47a4eb], 0
jne 0x43fcbd
mov edi, esi
call fcn.0043edb0
jmp 0x43fcbd
cmp byte [0x47a4eb], 0
jne 0x43ffd9
cmp dword [esi], 1
je 0x43ffae
mov dword [0x47a508], 0x80000
jmp 0x43ffd9
mov edx, dword [ebp - 0x3bc]
mov esi, dword [edx + 4]
call fcn.0043eb80
push esi
mov dword [0x47a508], eax
call fcn.0044f731
mov eax, dword [ebp - 0x3bc]
add esp, 4
push eax
call fcn.0044f731
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
cmp eax, ecx
je 0x44006f
push eax
call fcn.00450199
add esp, 4
jmp 0x44006f
push edi
push esi
call fcn.00414c80
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x440077
push esi
call fcn.00414c80
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3c0], eax
push esi
cmp eax, ebx
jne 0x440033
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x440077
call fcn.00414c80
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x440077
push edi
call fcn.0044f611
mov edx, dword [ebp - 0x3c0]
add esp, 4
push edi
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.004575e0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
jne 0x4400ff
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x440248
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x440248
push edi
mov dword [ebp - 0x3c4], 0
call fcn.0044f611
add esp, 4
push 0
lea ecx, [ebp - 0x3c4]
push ecx
push edi
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c4], edi
je 0x4400f7
push ebx
call fcn.0044f726
add esp, 4
xor eax, eax
jmp 0x440416
test ebx, ebx
je 0x440248
cmp dword [ebp - 0x3cc], 0
je 0x440162
lea edx, [ebp - 0x3bc]
push edx
lea eax, [ebp - 0x3c0]
push eax
mov eax, ebx
call fcn.004451c0
push ebx
mov esi, eax
call fcn.0044f726
add esp, 0xc
test esi, esi
je 0x440248
mov ecx, dword [ebp - 0x3bc]
mov edi, dword [ebp - 0x3c0]
push ecx
mov ebx, esi
call fcn.0044f611
mov edx, dword [ebp - 0x3bc]
add esp, 4
push edx
mov ecx, edi
add ecx, esi
push ecx
push eax
mov dword [ebp - 0x3c8], eax
call fcn.004575e0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x160], eax
lea edx, [ebp - 0x3bc]
push edx
lea eax, [ebp - 0x3c0]
push eax
add edi, ebx
lea eax, [ebp - 0x3d4]
lea ecx, [ebp - 0x180]
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xd4], edi
call fcn.00445320
push ebx
mov esi, eax
call fcn.0044f726
add esp, 0xc
test esi, esi
je 0x440248
push 0x2c
xor edi, edi
lea ecx, [ebp - 0x3c]
push edi
push ecx
call fcn.00454970
mov ebx, dword [ebp - 0x3c0]
mov ecx, dword [ebp - 0x3bc]
add esp, 0xc
mov eax, ebx
imul eax, ecx
push edi
push edi
mov edx, ecx
neg edx
lea ecx, [ebp - 0x3b8]
push ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x3c0], eax
push edi
lea edx, [ebp - 0x3c]
add eax, eax
push edx
add eax, eax
push edi
mov dword [ebp - 0x3c], 0x28
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], 0x200001
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x3b1], 0
mov dword [ebp - 0x3b8], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x3c4], eax
cmp eax, edi
jne 0x44024f
push esi
call fcn.00450199
mov eax, dword [ebp - 0x3c8]
add esp, 4
cmp eax, edi
je 0x440248
push eax
call fcn.0044f726
add esp, 4
xor eax, eax
jmp 0x440416
xor edi, edi
cmp dword [ebp - 0x3c0], edi
jle 0x4403bd
mov eax, dword [ebp - 0x3b8]
jmp 0x440270
mov cl, byte [esi + edi*4 + 3]
mov byte [eax + edi*4 + 3], cl
mov ecx, dword [ebp - 0x3b8]
cmp byte [ecx + edi*4 + 3], 0xff
movzx edx, byte [esi + edi*4 + 2]
jae 0x4402df
movzx eax, byte [esi + edi*4 + 3]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [ecx + edi*4], dl
movzx edx, byte [esi + edi*4 + 3]
movzx ecx, byte [esi + edi*4 + 1]
imul ecx, edx
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x3b8]
shr edx, 7
mov byte [eax + edi*4 + 1], dl
movzx edx, byte [esi + edi*4 + 3]
movzx ecx, byte [esi + edi*4]
imul ecx, edx
mov eax, 0x80808081
mul ecx
shr edx, 7
mov byte [ebp - 0x3b1], 1
jmp 0x4402f4
mov byte [ecx + edi*4], dl
mov al, byte [esi + edi*4 + 1]
mov ecx, dword [ebp - 0x3b8]
mov byte [ecx + edi*4 + 1], al
movzx edx, byte [esi + edi*4]
cmp dword [ebp - 0x3cc], 0
mov eax, dword [ebp - 0x3b8]
mov byte [eax + edi*4 + 2], dl
je 0x440370
mov eax, edi
cdq
idiv ebx
mov ecx, eax
mov eax, dword [ebp - 0x3bc]
sub eax, ecx
dec eax
imul eax, ebx
add eax, edx
mov ecx, eax
and ecx, 0xfffffff8
sub ecx, eax
add ecx, 7
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x3c8]
sar eax, 3
movsx eax, byte [eax + ecx]
test eax, edx
je 0x440370
mov ecx, dword [ebp - 0x3b8]
mov byte [ecx + edi*4], 0
mov edx, dword [ebp - 0x3b8]
mov byte [edx + edi*4 + 1], 0
mov eax, dword [ebp - 0x3b8]
mov byte [eax + edi*4 + 2], 0
mov ecx, dword [ebp - 0x3b8]
mov byte [ecx + edi*4 + 3], 0
mov byte [ebp - 0x3b1], 1
mov eax, dword [ebp - 0x3b8]
mov edx, dword [ebp + 0xc]
cmp dword [eax + edi*4], edx
jne 0x4403b0
mov byte [eax + edi*4], 0
mov eax, dword [ebp - 0x3b8]
mov byte [eax + edi*4 + 1], 0
mov ecx, dword [ebp - 0x3b8]
mov byte [ecx + edi*4 + 2], 0
mov edx, dword [ebp - 0x3b8]
mov byte [edx + edi*4 + 3], 0
mov eax, dword [ebp - 0x3b8]
mov byte [ebp - 0x3b1], 1
inc edi
cmp edi, dword [ebp - 0x3c0]
jl 0x440270
push esi
call fcn.00450199
mov eax, dword [ebp - 0x3c8]
add esp, 4
test eax, eax
je 0x4403d9
push eax
call fcn.0044f726
add esp, 4
push 0x98
call fcn.0044f78d
add esp, 4
test eax, eax
je 0x4403f7
lea ecx, [eax + 0x14]
xor edx, edx
mov dword [eax + 0x10], ecx
mov word [ecx], dx
jmp 0x4403f9
xor eax, eax
mov ecx, dword [ebp - 0x3c4]
mov edx, dword [ebp - 0x3bc]
mov dword [eax], ecx
mov cl, byte [ebp - 0x3b1]
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
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.0044eeef
mov esp, ebp
pop ebp
ret