Function at 0x43fb20
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 0x46012b
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 0x43fb66
sub eax, edx
sar eax, 1
mov ecx, 0x46b9ac
lea eax, [esi + eax*2 - 8]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43fba6
cmp dx, bx
je 0x43fba2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43fba6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x43fb80
xor eax, eax
jmp 0x43fbab
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x43fbff
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43fbb4
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 0x43fbf6
cmp dx, bx
je 0x43fbf2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43fbf6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x43fbd0
xor eax, eax
jmp 0x43fbfb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x43fc09
mov dword [ebp - 0x3cc], 1
cmp edi, ebx
jne 0x44000f
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 0x43fc37
mov edi, 0x463b38
mov ecx, edi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x43fc40
sub ecx, esi
sar ecx, 1
mov esi, ecx
cmp esi, 0x3f
jl 0x43fc70
lea edx, [esi + esi + 2]
push edx
push ebx
mov dword [ebp - 0xc8], ebx
call fcn.00458645
add esp, 8
mov dword [ebp - 0xc8], eax
push esi
push edi
push eax
call fcn.00459178
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 0x43fd76
mov edx, dword [ebp + 8]
push edx
call fcn.00418910
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 0x43fcf6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
cmp eax, ecx
je 0x440087
push eax
call fcn.004501b9
add esp, 4
jmp 0x440087
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x43fd2e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
cmp eax, edx
je 0x440087
push eax
call fcn.004501b9
add esp, 4
jmp 0x440087
push edi
mov dword [ebp - 0x3d0], 0
call fcn.0044f631
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 0x43ffe9
push ebx
call fcn.0044f746
add esp, 4
jmp 0x43fccd
push eax
call fcn.00418910
cmp byte [0x47a4eb], 0
je 0x43fd96
mov esi, dword [0x47a4fc]
mov dword [ebp - 0x3bc], esi
jmp 0x43fee2
mov ebx, dword [ebp - 0xc8]
push 0x340
call fcn.0044f7ad
add esp, 4
test eax, eax
je 0x43fdc3
or ecx, 0xffffffff
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 0x134], ecx
mov esi, eax
jmp 0x43fdc8
xor esi, esi
or ecx, 0xffffffff
cmp dword [esi], 0
jne 0x43fe96
cmp dword [esi + 4], ecx
jne 0x43fe96
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 0x43fdf0
mov edx, dword [0x46b994]
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 0x43fe8f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
push 0x1c
sete bl
call fcn.0044f7ad
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 0x43fe7f
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.0043d360
mov dword [esi], eax
mov eax, dword [0x47a504]
jmp 0x43fe9b
mov eax, 0x200
jmp 0x43fe9b
mov eax, 0x1000000
mov dword [0x47a508], eax
test eax, eax
je 0x43fec7
push esi
call fcn.0044f751
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
add esp, 4
cmp eax, edx
jmp 0x43fce2
push 8
call fcn.0044f7ad
mov dword [eax + 4], esi
add esp, 4
mov dword [eax], 1
mov esi, eax
mov dword [ebp - 0x3bc], eax
test esi, esi
jne 0x43ff00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
cmp eax, edx
jmp 0x43fce2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3b0]
push eax
push esi
lea edx, [ebp - 0x3c0]
call fcn.0043ec30
add esp, 8
test eax, eax
jne 0x43fccd
mov edi, dword [ebp - 0x184]
test edi, edi
jne 0x43ff45
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
cmp eax, edx
jmp 0x43fce2
push edi
call fcn.0044f631
add esp, 4
cmp dword [esi], 1
mov ebx, eax
je 0x43ff61
mov dword [0x47a508], 0x80000
jmp 0x43ff82
mov eax, dword [ebp - 0x3c0]
mov ecx, dword [esi + 4]
push edi
push ebx
push eax
call fcn.0043ea20
mov dword [0x47a508], eax
test eax, eax
je 0x43ffa4
cmp eax, 0x600
je 0x43ffa4
push ebx
call fcn.0044f746
add esp, 4
cmp byte [0x47a4eb], 0
jne 0x43fccd
mov edi, esi
call fcn.0043ed90
jmp 0x43fccd
cmp byte [0x47a4eb], 0
jne 0x43ffe9
cmp dword [esi], 1
je 0x43ffbe
mov dword [0x47a508], 0x80000
jmp 0x43ffe9
mov edx, dword [ebp - 0x3bc]
mov esi, dword [edx + 4]
call fcn.0043eb60
push esi
mov dword [0x47a508], eax
call fcn.0044f751
mov eax, dword [ebp - 0x3bc]
add esp, 4
push eax
call fcn.0044f751
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
cmp eax, ecx
je 0x44007f
push eax
call fcn.004501b9
add esp, 4
jmp 0x44007f
push edi
push esi
call fcn.00414cb0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x440087
push esi
call fcn.00414cb0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3c0], eax
push esi
cmp eax, ebx
jne 0x440043
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x440087
call fcn.00414cb0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x440087
push edi
call fcn.0044f631
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.00457600
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
jne 0x44010f
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 0x440258
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x440258
push edi
mov dword [ebp - 0x3c4], 0
call fcn.0044f631
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 0x440107
push ebx
call fcn.0044f746
add esp, 4
xor eax, eax
jmp 0x440426
test ebx, ebx
je 0x440258
cmp dword [ebp - 0x3cc], 0
je 0x440172
lea edx, [ebp - 0x3bc]
push edx
lea eax, [ebp - 0x3c0]
push eax
mov eax, ebx
call fcn.004451e0
push ebx
mov esi, eax
call fcn.0044f746
add esp, 0xc
test esi, esi
je 0x440258
mov ecx, dword [ebp - 0x3bc]
mov edi, dword [ebp - 0x3c0]
push ecx
mov ebx, esi
call fcn.0044f631
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.00457600
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.00445340
push ebx
mov esi, eax
call fcn.0044f746
add esp, 0xc
test esi, esi
je 0x440258
push 0x2c
xor edi, edi
lea ecx, [ebp - 0x3c]
push edi
push ecx
call fcn.00454990
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 0x44025f
push esi
call fcn.004501b9
mov eax, dword [ebp - 0x3c8]
add esp, 4
cmp eax, edi
je 0x440258
push eax
call fcn.0044f746
add esp, 4
xor eax, eax
jmp 0x440426
xor edi, edi
cmp dword [ebp - 0x3c0], edi
jle 0x4403cd
mov eax, dword [ebp - 0x3b8]
jmp 0x440280
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 0x4402ef
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 0x440304
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 0x440380
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 0x440380
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 0x4403c0
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 0x440280
push esi
call fcn.004501b9
mov eax, dword [ebp - 0x3c8]
add esp, 4
test eax, eax
je 0x4403e9
push eax
call fcn.0044f746
add esp, 4
push 0x98
call fcn.0044f7ad
add esp, 4
test eax, eax
je 0x440407
lea ecx, [eax + 0x14]
xor edx, edx
mov dword [eax + 0x10], ecx
mov word [ecx], dx
jmp 0x440409
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.0044ef0f
mov esp, ebp
pop ebp
ret