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

Disassembly:
push ebp
sub esp, 0x338
lea ebp, [esp - 4]
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp + 0x338], eax
push 0xa8
mov eax, 0x4a8dd0
call fcn.00471d54
mov eax, dword [ebp + 0x348]
xor ebx, ebx
cmp eax, ebx
jne 0x43d48b
or esi, 0xffffffff
push esi
call fcn.0042ba7a
push eax
lea ecx, [ebp + 0x2b4]
call fcn.0042b150
push esi
mov dword [ebp - 4], ebx
call fcn.0042ba84
push eax
lea ecx, [ebp + 0x230]
call fcn.0042b150
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], 1
call fcn.0042a92c
test al, al
je 0x43d3c3
push dword [ebp + 0x344]
lea ecx, [ebp + 0x2b4]
call fcn.0042a9db
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp + 0x2b4]
call fcn.0042a957
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, esi
jne 0x43d35f
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], bl
call fcn.0042a801
mov dword [ebp - 4], esi
lea ecx, [ebp + 0x2b4]
call fcn.0042a801
xor eax, eax
jmp 0x43d9eb
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x43d33c
lea eax, [edi + 2]
push eax
mov dword [ebp - 0x38], ebx
call fcn.00471662
pop ecx
mov esi, eax
push ebx
lea eax, [ebp - 0x38]
push eax
push edi
push esi
push dword [ebp - 0x34]
mov byte [edi + esi], bl
mov dword [ebp - 0x4c], esi
mov byte [edi + esi + 1], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], edi
je 0x43d469
push esi
call fcn.00472f37
pop ecx
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], bl
call fcn.0042a801
or dword [ebp - 4], 0xffffffff
jmp 0x43d34d
call fcn.0042ba84
push eax
lea ecx, [ebp + 0x2b4]
call fcn.0042a9db
push 2
push ebx
lea ecx, [ebp + 0x2b4]
call fcn.0042a957
push eax
call fcn.00424fee
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push 1
push dword [ebp + 0x344]
mov dword [ebp - 0x1c], eax
push eax
call fcn.00425195
add esp, 0x20
test eax, eax
jne 0x43d33c
mov edi, dword [ebp + 0x22c]
cmp edi, ebx
je 0x43d33c
lea eax, [edi + 2]
push eax
call fcn.00471662
push 3
mov esi, eax
push edi
mov byte [edi + esi], bl
push esi
mov byte [edi + esi + 1], bl
push dword [ebp - 0x3c]
mov dword [ebp - 0x4c], esi
push dword [ebp - 0x1c]
call fcn.0042527c
add esp, 0x18
cmp eax, ebx
je 0x43d460
cmp eax, 0x600
je 0x43d460
push esi
call fcn.00472f37
push dword [ebp - 0x1c]
call fcn.00424689
pop ecx
jmp 0x43d3ae
push dword [ebp - 0x1c]
call fcn.00424689
pop ecx
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], bl
call fcn.0042a801
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2b4]
call fcn.0042a801
jmp 0x43d514
push eax
push dword [ebp + 0x344]
call fcn.0042ba6b
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x40], esi
cmp esi, ebx
je 0x43d358
push esi
call fcn.0042ba6b
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x44], eax
push esi
cmp eax, ebx
jne 0x43d4cb
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x43d358
call fcn.0042ba6b
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x43d358
lea eax, [edi + 2]
push eax
call fcn.00471662
pop ecx
mov esi, eax
push edi
push dword [ebp - 0x44]
mov byte [edi + esi], bl
mov dword [ebp - 0x4c], esi
mov byte [edi + esi + 1], bl
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.004720c0
add esp, 0xc
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0x344], ebx
je 0x43d6b9
push str..svg
push dword [ebp + 0x344]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x43d6b9
fld dword [0x4b322c]
push ecx
fstp dword [esp]
push 0x4b3228
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0043d15f
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x28], edi
cmp edi, ebx
je 0x43d64c
fld dword [edi]
call fcn.004778e0
push eax
call fcn.0042f910
fld dword [edi + 4]
mov dword [ebp - 0x1c], eax
call fcn.004778e0
push eax
call fcn.0042f910
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
call fcn.0043d24d
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x43d64c
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x88]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
neg ecx
mov dword [ebp - 0x84], ecx
xor ecx, ecx
push 0x20
inc ecx
mov word [ebp - 0x80], cx
pop ecx
mov word [ebp - 0x7e], cx
mov ecx, dword [ebp - 0x18]
imul ecx, eax
push ebx
push ebx
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x50]
push eax
push ebx
lea eax, [ebp - 0x8c]
push eax
shl ecx, 2
push ebx
mov dword [ebp - 0x8c], 0x28
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x43d649
mov eax, dword [ebp - 0x1c]
mov ecx, eax
shl ecx, 2
push ecx
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x50]
call fcn.0042f833
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x3c]
sub esp, 0xc
fmul qword [0x4b3220]
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x3c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
push dword [ebp - 0x28]
push dword [ebp - 0x14]
call fcn.0043844d
add esp, 0x24
mov edi, dword [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
je 0x43d65a
push dword [ebp - 0x14]
call fcn.00435f81
pop ecx
cmp edi, ebx
je 0x43d665
push edi
call fcn.00435f36
pop ecx
push esi
call fcn.00472f37
mov edi, dword [ebp - 0x38]
pop ecx
cmp edi, ebx
je 0x43d358
push 0x98
call fcn.00471e79
mov esi, eax
pop ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 2
cmp esi, ebx
je 0x43d69c
lea ecx, [esi + 0x10]
call fcn.0042a7dc
mov ebx, esi
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov dword [ebx], edi
mov byte [ebx + 0xc], 1
mov byte [ebx + 0xd], 1
mov eax, ebx
jmp 0x43d9eb
push ebx
push ebx
push ebx
push 0x4b3214
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x1d], bl
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
call fcn.00453038
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x43d989
push eax
call fcn.0044cecb
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x43d98c
push 0x40
push fcn.0047b084
push dword [ebp - 0x10]
call fcn.00458f18
push 0x4ceb08
push dword [ebp - 4]
push 0x471a12
push 3
push eax
call fcn.0047b138
add esp, 0x20
test eax, eax
jne 0x43d989
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x60], eax
push 0x4390e9
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x10]
call fcn.004587bd
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.0044fcf2
push ebx
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x5c], ebx
call fcn.00453d66
add esp, 0x38
cmp dword [ebp - 0x28], 0x10
jne 0x43d785
push dword [ebp - 0x10]
call fcn.0045441a
pop ecx
cmp dword [ebp - 0x18], 3
jne 0x43d794
push dword [ebp - 0x10]
call fcn.00454ded
pop ecx
cmp dword [ebp - 0x28], 8
jge 0x43d7a3
push dword [ebp - 0x10]
call fcn.00454ded
pop ecx
push 0x10
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.004534f0
add esp, 0xc
test eax, eax
je 0x43d7c0
push dword [ebp - 0x10]
call fcn.00454ded
pop ecx
cmp dword [ebp - 0x18], ebx
je 0x43d7cb
cmp dword [ebp - 0x18], 4
jne 0x43d7d4
push dword [ebp - 0x10]
call fcn.00454e79
pop ecx
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.0044ffa7
push ebx
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.00453d66
mov edi, dword [ebp - 0x2c]
push 0x28
pop esi
push esi
lea edi, [edi*4 + 3]
lea eax, [ebp - 0xb4]
push ebx
and edi, 0xfffffffc
push eax
mov dword [ebp - 0x48], edi
call fcn.00472470
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x30]
neg eax
add esp, 0x38
mov dword [ebp - 0xac], eax
xor eax, eax
push 0x20
inc eax
mov word [ebp - 0xa8], ax
pop eax
push ebx
push ebx
mov word [ebp - 0xa6], ax
lea eax, [ebp - 0x54]
push eax
push ebx
lea eax, [ebp - 0xb4]
push eax
push ebx
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x54], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push dword [ebp - 0x24]
mov dword [ebp - 0x58], eax
push dword [ebp - 0x10]
call fcn.0045350a
push eax
push dword [ebp - 0x10]
call fcn.00453366
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x30], ebx
jbe 0x43d97c
mov dword [ebp - 0x40], ebx
push 1
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call fcn.0045038b
add esp, 0x10
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x2c], ebx
jbe 0x43d96a
xor eax, eax
mov dword [ebp - 0x44], eax
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x54]
shl esi, 2
add ecx, esi
add ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x18], 6
je 0x43d8fb
cmp dword [ebp - 0x18], 4
je 0x43d8fb
mov byte [ecx + 3], 0xff
mov edx, dword [ebp - 0x14]
mov dl, byte [eax + edx]
mov byte [ecx + 2], dl
mov edx, dword [ebp - 0x14]
mov dl, byte [eax + edx + 1]
mov byte [ecx + 1], dl
mov edx, dword [ebp - 0x14]
mov dl, byte [eax + edx + 2]
mov byte [ecx], dl
jmp 0x43d955
mov eax, dword [ebp - 0x14]
mov dl, byte [esi + eax + 3]
mov byte [ecx + 3], dl
mov eax, dword [ebp - 0x14]
movzx eax, byte [esi + eax]
movzx edx, dl
imul eax, edx
xor edx, edx
mov edi, 0xff
div edi
movzx edx, byte [ecx + 3]
mov byte [ebp - 0x1d], 1
mov byte [ecx + 2], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [esi + eax + 1]
imul eax, edx
xor edx, edx
div edi
movzx edx, byte [ecx + 3]
mov byte [ecx + 1], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [esi + eax + 2]
imul eax, edx
mov esi, edi
xor edx, edx
div esi
mov edi, dword [ebp - 0x48]
mov byte [ecx], al
mov eax, dword [ebp - 0x44]
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add eax, 3
mov dword [ebp - 0x44], eax
cmp ecx, dword [ebp - 0x2c]
jb 0x43d8bf
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
add dword [ebp - 0x40], edi
cmp eax, dword [ebp - 0x30]
jb 0x43d89c
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00453462
pop ecx
pop ecx
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x10], ebx
je 0x43d9a8
neg eax
sbb eax, eax
lea ecx, [ebp - 0x24]
and eax, ecx
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00450867
add esp, 0xc
push 0x98
call fcn.00471e79
mov esi, eax
pop ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 3
cmp esi, ebx
je 0x43d9cf
lea ecx, [esi + 0x10]
call fcn.0042a7dc
mov eax, esi
jmp 0x43d9d1
xor eax, eax
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 8], ecx
mov cl, byte [ebp - 0x1d]
mov byte [eax + 0xc], cl
mov byte [eax + 0xd], bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x338]
xor ecx, ebp
call fcn.00471830
add ebp, 0x33c
leave
ret