Function at 0x426020
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 0x45f898
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x47b0b0]
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 dword [ebp - 0x1d8], edx
test ecx, ecx
jne 0x4263ec
mov eax, dword [0x47ced8]
mov edi, 0x46c081
test eax, eax
cmovne edi, eax
mov esi, edi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 0x54], 0
lea edx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x426080
sub esi, edx
cmp esi, 0x3f
jl 0x4260a8
lea eax, [esi + 1]
push eax
push 0
mov dword [ebp - 0x58], 0
call fcn.0044e5a9
mov ecx, eax
add esp, 8
mov dword [ebp - 0x58], ecx
push esi
push edi
push ecx
call fcn.0044dd9e
mov eax, dword [ebp - 0x58]
add esp, 0xc
mov byte [eax + esi], 0
mov dword [ebp - 4], 0
mov eax, dword [0x47cf20]
cmp byte [eax], 0
jne 0x426178
mov eax, dword [ebp + 8]
test eax, eax
je 0x4260df
push eax
lea ecx, [ebp - 0x58]
call fcn.00436bb0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x426124
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x426481
push eax
call fcn.0044e444
add esp, 4
jmp 0x426481
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x426101
push edi
mov dword [ebp - 0x1c8], 0
call fcn.0044cff1
add esp, 4
mov ebx, eax
push 0
lea eax, [ebp - 0x1c8]
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 - 0x1c8], edi
je 0x4263c9
push ebx
call fcn.0044dd99
add esp, 4
jmp 0x426101
push eax
lea ecx, [ebp - 0x58]
call fcn.00436bb0
cmp byte [0x47f31c], 0
je 0x426195
mov esi, dword [0x47f318]
jmp 0x4262d3
mov esi, dword [ebp - 0x58]
push 0x23c
call fcn.0044d063
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c8], eax
test ebx, ebx
je 0x4261ca
mov dword [ebx], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x134], 0xffffffff
jmp 0x4261d2
xor ebx, ebx
mov dword [ebp - 0x1c8], ebx
cmp dword [ebx], 0
jne 0x4262a2
cmp dword [ebx + 4], 0xffffffff
jne 0x4262a2
lea edi, [ebx + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4261f8
mov ax, word [0x471f38]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
mov word [edi], ax
mov dword [ebp - 0x1c4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c4], eax
cmp eax, 0xffffffff
je 0x42629b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
push 0x1c
sete bl
call fcn.0044d063
mov esi, eax
add esp, 4
mov byte [esi], 1
mov byte [esi + 1], bl
mov ecx, dword [ebp - 0x1c4]
mov dword [esi + 4], ecx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test bl, bl
je 0x426285
push 1
push 0
push 0
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
mov ecx, esi
call fcn.0043aed0
mov ebx, dword [ebp - 0x1c8]
mov dword [ebx], eax
mov eax, dword [0x47f338]
jmp 0x4262a7
mov eax, 0x200
jmp 0x4262a7
mov eax, 0x1000000
mov dword [0x47f33c], eax
test eax, eax
je 0x4262be
push ebx
call fcn.0044d05e
add esp, 4
jmp 0x426101
push 8
call fcn.0044d063
mov esi, eax
add esp, 4
mov dword [esi], 1
mov dword [esi + 4], ebx
mov dword [ebp - 0x1c8], esi
test esi, esi
je 0x426101
cmp dword [esi], 1
je 0x4262f5
mov dword [0x47f33c], 0x80000
jmp 0x426101
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x1cc]
push eax
push ecx
push dword [ebp + 8]
mov ecx, dword [esi + 4]
call fcn.0043c500
mov dword [0x47f33c], eax
test eax, eax
jne 0x426101
mov edi, dword [ebp - 0x90]
test edi, edi
je 0x426101
push edi
call fcn.0044cff1
add esp, 4
cmp dword [esi], 1
mov ebx, eax
je 0x426346
mov dword [0x47f33c], 0x80000
jmp 0x426367
push ecx
mov ecx, dword [esi + 4]
push edi
push ebx
push dword [ebp - 0x1cc]
call fcn.0043c590
mov dword [0x47f33c], eax
test eax, eax
je 0x426389
cmp eax, 0x600
je 0x426389
push ebx
call fcn.0044dd99
add esp, 4
cmp byte [0x47f31c], 0
jne 0x426101
mov ecx, esi
call fcn.0043c7c0
jmp 0x426101
cmp byte [0x47f31c], 0
jne 0x4263c9
cmp dword [esi], 1
je 0x4263a3
mov dword [0x47f33c], 0x80000
jmp 0x4263c9
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.0043c690
push esi
mov dword [0x47f33c], eax
call fcn.0044d05e
add esp, 4
push dword [ebp - 0x1c8]
call fcn.0044d05e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x426479
push eax
call fcn.0044e444
add esp, 4
jmp 0x426479
mov eax, dword [0x47f320]
push ecx
push dword [ebp + 8]
test eax, eax
cmove eax, dword [0x47f324]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x426481
mov ecx, dword [0x47f320]
test ecx, ecx
cmove ecx, dword [0x47f324]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1cc], eax
push esi
test eax, eax
jne 0x426435
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x426481
mov eax, dword [0x47f320]
test eax, eax
cmove eax, dword [0x47f324]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x426481
push edi
call fcn.0044cff1
add esp, 4
mov ebx, eax
push edi
push dword [ebp - 0x1cc]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.00450620
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
jne 0x426513
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4264f1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4264f1
push edi
mov dword [ebp - 0x1d0], 0
call fcn.0044cff1
add esp, 4
mov ebx, eax
push 0
lea eax, [ebp - 0x1d0]
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 - 0x1d0], edi
je 0x42650f
push ebx
call fcn.0044dd99
add esp, 4
xor eax, eax
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.0044d04f
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4264f1
lea eax, [edi + ebx]
mov dword [ebp - 0x94], eax
push ecx
lea eax, [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x1cc]
push eax
lea edx, [ebp - 0x1d4]
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x98], ebx
call fcn.0042d8b0
add esp, 0xc
mov edi, eax
push ebx
mov dword [ebp - 0x1c4], edi
call fcn.0044dd99
add esp, 4
test edi, edi
je 0x4264f1
push 0x2c
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00452d00
mov ecx, dword [ebp - 0x1d4]
mov eax, dword [ebp - 0x1cc]
mov ebx, ecx
imul ebx, dword [ebp - 0x1cc]
add esp, 0xc
neg eax
mov dword [ebp - 0x7c], eax
push 0
lea eax, [ebx*4]
push 0
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x1c0]
push eax
push 0
lea eax, [ebp - 0x84]
push eax
push 0
mov dword [ebp - 0x84], 0x28
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], 0x200001
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x1b9], 0
mov dword [ebp - 0x1c0], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x1d0], eax
test eax, eax
je 0x4264f1
xor esi, esi
test ebx, ebx
jle 0x42670c
nop
mov eax, dword [ebp - 0x1c0]
mov cl, byte [edi + esi*4 + 3]
mov byte [eax + esi*4 + 3], cl
mov eax, dword [ebp - 0x1c0]
cmp byte [eax + esi*4 + 3], 0xff
lea edi, [eax + esi*4]
mov eax, dword [ebp - 0x1c4]
jae 0x42669d
movzx ecx, byte [eax + esi*4 + 2]
movzx eax, byte [eax + esi*4 + 3]
imul ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
mov byte [edi], dl
mov edi, dword [ebp - 0x1c4]
mov byte [ebp - 0x1b9], 1
movzx eax, byte [edi + esi*4 + 3]
movzx ecx, byte [edi + esi*4 + 1]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x1c0]
shr edx, 7
mov byte [eax + esi*4 + 1], dl
movzx eax, byte [edi + esi*4 + 3]
movzx ecx, byte [edi + esi*4]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x1c0]
shr edx, 7
mov byte [eax + esi*4 + 2], dl
jmp 0x4266c6
mov al, byte [eax + esi*4 + 2]
mov byte [edi], al
mov edi, dword [ebp - 0x1c4]
mov eax, dword [ebp - 0x1c0]
movzx ecx, byte [edi + esi*4 + 1]
mov byte [eax + esi*4 + 1], cl
movzx ecx, byte [edi + esi*4]
mov eax, dword [ebp - 0x1c0]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 0x1d8]
cmp dword [eax + esi*4], ecx
jne 0x426703
mov byte [eax + esi*4], 0
mov eax, dword [ebp - 0x1c0]
mov byte [ebp - 0x1b9], 1
mov byte [eax + esi*4 + 1], 0
mov eax, dword [ebp - 0x1c0]
mov byte [eax + esi*4 + 2], 0
mov eax, dword [ebp - 0x1c0]
mov byte [eax + esi*4 + 3], 0
inc esi
cmp esi, ebx
jl 0x426610
push edi
call fcn.0044e444
add esp, 4
push 0x58
call fcn.0044d063
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x426730
lea eax, [ecx + 0x14]
mov dword [ecx + 0x10], eax
mov byte [eax], 0
jmp 0x426732
xor ecx, ecx
mov eax, dword [ebp - 0x1d0]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x1cc]
mov dword [ecx + 8], eax
mov al, byte [ebp - 0x1b9]
mov byte [ecx + 0xc], al
mov eax, ecx
jmp 0x4264f3