Function at 0x4357b0
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x598a1b
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x5fd890]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5fd890]
xor eax, esp
push eax
lea eax, [esp + 0x31c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x330]
xor ebx, ebx
cmp eax, ebx
jne 0x435a62
mov edx, dword [0x602be0]
lea eax, [esp + 0x60]
mov dword [esp + 0x5c], eax
xor ecx, ecx
push edx
or eax, 0xffffffff
lea esi, [esp + 0x60]
mov word [esp + 0x64], cx
call fcn.00417140
mov dword [esp + 0x324], ebx
mov eax, dword [esp + 0x32c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4358db
mov ecx, dword [esp + 0x32c]
push ecx
or eax, 0xffffffff
call fcn.00417140
mov edx, dword [esp + 0x5c]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4358bf
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jne 0x435887
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x60]
cmp eax, edx
jmp 0x4358c9
push esi
mov dword [esp + 0x2c], ebx
call fcn.00466c9d
add esp, 4
push ebx
mov ebp, eax
lea eax, [esp + 0x2c]
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], esi
je 0x435a39
push ebp
call fcn.00466c92
add esp, 4
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x60]
cmp eax, ecx
je 0x4358d4
push eax
call fcn.005668e2
add esp, 4
xor eax, eax
jmp 0x435cbc
mov eax, dword [0x602c68]
cmp word [eax], bx
lea ebx, [esp + 0x5c]
jne 0x435968
mov edx, dword [esp + 0x32c]
push edx
call fcn.00417000
mov eax, dword [esp + 0x5c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4358bf
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x435935
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x60]
cmp eax, edx
jmp 0x4358c9
push esi
mov dword [esp + 0x24], 0
call fcn.00466c9d
add esp, 4
push 0
mov ebp, eax
lea eax, [esp + 0x24]
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], esi
jmp 0x4358b0
push eax
call fcn.00417000
cmp byte [0x61998c], 0
je 0x43597f
mov ebx, dword [0x619990]
jmp 0x435995
mov edx, dword [esp + 0x5c]
push 0
push edx
mov ebx, 2
call fcn.00441b50
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4358bf
mov edx, dword [esp + 0x32c]
push ebx
lea edi, [esp + 0xe8]
lea ecx, [esp + 0x20]
call fcn.00441bc0
add esp, 4
test eax, eax
je 0x4359cb
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x60]
cmp eax, edx
jmp 0x4358c9
mov esi, dword [esp + 0x310]
test esi, esi
je 0x4358bf
push esi
call fcn.00466c9d
mov edx, dword [esp + 0x20]
mov ebp, eax
add esp, 4
push esi
mov ecx, ebp
mov eax, ebx
call fcn.00441d10
add esp, 4
test eax, eax
je 0x435a29
cmp eax, 0x600
je 0x435a29
push ebp
call fcn.00466c92
add esp, 4
cmp byte [0x61998c], 0
jne 0x435a1a
mov edi, ebx
call fcn.00441d50
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x60]
cmp eax, edx
jmp 0x4358c9
cmp byte [0x61998c], 0
jne 0x435a39
mov edi, ebx
call fcn.00441d50
mov dword [esp + 0x324], 0xffffffff
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x60]
cmp eax, ecx
je 0x435ae9
push eax
call fcn.005668e2
add esp, 4
jmp 0x435ae9
mov ecx, dword [0x619988]
cmp ecx, ebx
jne 0x435a72
mov ecx, dword [0x619984]
mov edx, dword [esp + 0x32c]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x4358d4
mov eax, dword [0x619988]
cmp eax, ebx
jne 0x435a9a
mov eax, dword [0x619984]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x4358d4
mov eax, dword [0x619988]
cmp eax, ebx
jne 0x435aba
mov eax, dword [0x619984]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x4358d4
push esi
call fcn.00466c9d
add esp, 4
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebp
call fcn.005699d0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
lea edx, [esp + 0x38]
mov ecx, ebp
call fcn.0040cc70
add esp, 0xc
mov esi, eax
push ebp
mov dword [esp + 0x20], esi
call fcn.00466c92
add esp, 4
test esi, esi
je 0x4358d4
push 0x2c
lea edx, [esp + 0x34]
push 0
push edx
call fcn.0056b700
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
add esp, 0xc
push 0
mov ebp, edi
mov ecx, 1
imul ebp, esi
push 0
mov word [esp + 0x44], cx
lea ecx, [esp + 0x20]
push ecx
mov edx, 0x20
mov eax, esi
neg eax
mov word [esp + 0x4a], dx
push 0
lea edx, [esp + 0x40]
mov dword [esp + 0x48], eax
push edx
lea eax, [ebp*4]
push 0
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x4c], edi
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], eax
xor bl, bl
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4358d4
xor ecx, ecx
test ebp, ebp
jle 0x435c80
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add esi, 3
mov dl, byte [esi]
mov byte [eax + ecx*4 + 3], dl
mov edi, dword [esp + 0x18]
cmp byte [edi + ecx*4 + 3], 0xff
jae 0x435c19
movzx eax, byte [esi]
movzx edx, byte [esi - 1]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [edi + ecx*4], dl
movzx eax, byte [esi]
movzx edx, byte [esi - 2]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x18]
shr edx, 7
mov byte [eax + ecx*4 + 1], dl
movzx eax, byte [esi]
movzx edx, byte [esi - 3]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x18]
shr edx, 7
mov byte [eax + ecx*4 + 2], dl
mov bl, 1
jmp 0x435c37
mov dl, byte [esi - 1]
mov byte [edi + ecx*4], dl
movzx eax, byte [esi - 2]
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 1], al
movzx eax, byte [esi - 3]
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 2], al
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x334]
cmp dword [eax + ecx*4], edx
jne 0x435c6c
mov byte [eax + ecx*4], 0
mov eax, dword [esp + 0x18]
mov byte [eax + ecx*4 + 1], 0
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 2], 0
mov eax, dword [esp + 0x18]
mov byte [eax + ecx*4 + 3], 0
mov eax, dword [esp + 0x18]
mov bl, 1
inc ecx
add esi, 4
cmp ecx, ebp
jl 0x435bb5
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005668e2
add esp, 4
push 0x98
call fcn.00466c63
add esp, 4
test eax, eax
je 0x435cab
lea ecx, [eax + 0x14]
xor edx, edx
mov dword [eax + 0x10], ecx
mov word [ecx], dx
jmp 0x435cad
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov byte [eax + 0xc], bl
mov ecx, dword [esp + 0x31c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.00565f92
add esp, 0x314
ret