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

Disassembly:
push ebp
sub esp, 0x568
lea ebp, [esp - 4]
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp + 0x568], eax
push 0xac
mov eax, 0x4a98a6
call fcn.0047276e
mov eax, dword [ebp + 0x578]
xor ebx, ebx
cmp eax, ebx
jne 0x43ddab
or esi, 0xffffffff
push esi
call fcn.0042c278
push eax
lea ecx, [ebp + 0x4e4]
call fcn.0042b949
push esi
mov dword [ebp - 4], ebx
call fcn.0042c282
push eax
lea ecx, [ebp + 0x460]
call fcn.0042b949
mov byte [ebp - 4], 1
call fcn.0042c28c
test eax, eax
je 0x43dc47
push 3
call fcn.0042c292
push eax
call fcn.0042c28c
push eax
call fcn.00425746
lea ecx, [ebp + 0x230]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push 1
push dword [ebp + 0x574]
mov dword [ebp - 0x30], eax
push eax
call fcn.004258ed
add esp, 0x20
test eax, eax
je 0x43dbdf
lea ecx, [ebp + 0x460]
mov byte [ebp - 4], bl
call fcn.0042ad19
mov dword [ebp - 4], esi
lea ecx, [ebp + 0x4e4]
call fcn.0042ad19
xor eax, eax
jmp 0x43e310
mov edi, dword [ebp + 0x45c]
cmp edi, ebx
je 0x43dbbc
lea eax, [edi + 2]
push eax
call fcn.00471f88
push 3
mov esi, eax
push edi
mov byte [edi + esi], bl
push esi
mov byte [edi + esi + 1], bl
push dword [ebp - 0x64]
mov dword [ebp - 0x28], esi
push dword [ebp - 0x30]
call fcn.004259d4
add esp, 0x18
cmp eax, ebx
je 0x43dc3f
cmp eax, 0x600
je 0x43dc3f
push esi
call fcn.004737a7
push dword [ebp - 0x30]
call fcn.00424de1
pop ecx
pop ecx
lea ecx, [ebp + 0x460]
mov byte [ebp - 4], bl
call fcn.0042ad19
or dword [ebp - 4], 0xffffffff
jmp 0x43dbcd
push dword [ebp - 0x30]
jmp 0x43dd86
lea ecx, [ebp + 0x460]
call fcn.0042ae4c
test al, al
je 0x43dcec
push dword [ebp + 0x574]
lea ecx, [ebp + 0x4e4]
call fcn.0042aefb
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp + 0x4e4]
call fcn.0042ae77
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp eax, esi
je 0x43dbbc
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x43dc2b
lea eax, [edi + 2]
push eax
mov dword [ebp - 0x50], ebx
call fcn.00471f88
pop ecx
mov esi, eax
push ebx
lea eax, [ebp - 0x50]
push eax
push edi
push esi
push dword [ebp - 0x38]
mov byte [edi + esi], bl
mov dword [ebp - 0x28], esi
mov byte [edi + esi + 1], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], edi
je 0x43dd8c
push esi
call fcn.004737a7
jmp 0x43dc2a
call fcn.0042c282
push eax
lea ecx, [ebp + 0x4e4]
call fcn.0042aefb
push 2
push ebx
lea ecx, [ebp + 0x4e4]
call fcn.0042ae77
push eax
call fcn.00425746
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push 1
push dword [ebp + 0x574]
mov dword [ebp - 0x24], eax
push eax
call fcn.004258ed
add esp, 0x20
test eax, eax
jne 0x43dbbc
mov edi, dword [ebp + 0x22c]
cmp edi, ebx
je 0x43dc2b
lea eax, [edi + 2]
push eax
call fcn.00471f88
push 3
mov esi, eax
push edi
mov byte [edi + esi], bl
push esi
mov byte [edi + esi + 1], bl
push dword [ebp - 0x40]
mov dword [ebp - 0x28], esi
push dword [ebp - 0x24]
call fcn.004259d4
add esp, 0x18
cmp eax, ebx
je 0x43dd83
cmp eax, 0x600
je 0x43dd83
push esi
call fcn.004737a7
push dword [ebp - 0x24]
jmp 0x43dc24
push dword [ebp - 0x24]
call fcn.00424de1
pop ecx
lea ecx, [ebp + 0x460]
mov byte [ebp - 4], bl
call fcn.0042ad19
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x4e4]
call fcn.0042ad19
jmp 0x43de2a
push eax
push dword [ebp + 0x574]
call fcn.0042c269
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x43dbd8
push esi
call fcn.0042c269
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x43dbd8
push esi
call fcn.0042c269
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x43dbd8
lea eax, [edi + 2]
push eax
call fcn.00471f88
pop ecx
mov esi, eax
push edi
push dword [ebp - 0x2c]
mov byte [edi + esi], bl
mov dword [ebp - 0x28], esi
mov byte [edi + esi + 1], bl
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.00472880
add esp, 0xc
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0x574], ebx
je 0x43dfd5
push str..svg
push dword [ebp + 0x574]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x43dfd5
fld dword [0x4b3374]
push ecx
fstp dword [esp]
push 0x4b3370
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
call fcn.0043d9e9
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x43df68
fld dword [edi]
call fcn.00478250
push eax
call fcn.004301aa
fld dword [edi + 4]
mov dword [ebp - 0x28], eax
call fcn.00478250
push eax
call fcn.004301aa
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
call fcn.0043dad7
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x43df68
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x8c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
neg ecx
mov dword [ebp - 0x88], ecx
xor ecx, ecx
push 0x20
inc ecx
mov word [ebp - 0x84], cx
pop ecx
mov word [ebp - 0x82], cx
mov ecx, dword [ebp - 0x18]
imul ecx, eax
push ebx
push ebx
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x58]
push eax
push ebx
lea eax, [ebp - 0x90]
push eax
shl ecx, 2
push ebx
mov dword [ebp - 0x90], 0x28
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x58], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x43df65
mov eax, dword [ebp - 0x28]
mov ecx, eax
shl ecx, 2
push ecx
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x58]
call fcn.004300cd
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
sub esp, 0xc
fmul qword [0x4b3368]
fstp dword [ebp - 0x40]
fld dword [ebp - 0x40]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call fcn.00438cd7
add esp, 0x24
mov edi, dword [ebp - 0x24]
cmp dword [ebp - 0x14], ebx
je 0x43df76
push dword [ebp - 0x14]
call fcn.0043680b
pop ecx
cmp edi, ebx
je 0x43df81
push edi
call fcn.004367c0
pop ecx
push esi
call fcn.004737a7
mov edi, dword [ebp - 0x2c]
pop ecx
cmp edi, ebx
je 0x43dbd8
push 0x98
call fcn.00471fcc
mov esi, eax
pop ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 2
cmp esi, ebx
je 0x43dfb8
lea ecx, [esi + 0x10]
call fcn.0042acf4
mov ebx, esi
mov eax, dword [ebp - 0x28]
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 0x43e310
push ebx
push ebx
push ebx
push 0x4b335c
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x1d], bl
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
call fcn.0045395a
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x43e2ae
push eax
call fcn.0044d7eb
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x43e2b1
push 0x40
push fcn.0047bae4
push dword [ebp - 0x10]
call fcn.0045983a
push 0x4ceda8
push dword [ebp - 4]
push 0x47242c
push 3
push eax
call fcn.0047bb98
add esp, 0x20
test eax, eax
jne 0x43e2ae
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x60], eax
push 0x439973
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x10]
call fcn.004590df
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.00450612
push ebx
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x44], ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x54], ebx
call fcn.00454688
add esp, 0x38
cmp dword [ebp - 0x44], 0x10
jne 0x43e0a1
push dword [ebp - 0x10]
call fcn.00454d3c
pop ecx
cmp dword [ebp - 0x18], 3
jne 0x43e0b0
push dword [ebp - 0x10]
call fcn.0045570f
pop ecx
cmp dword [ebp - 0x44], 8
jge 0x43e0bf
push dword [ebp - 0x10]
call fcn.0045570f
pop ecx
push 0x10
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.00453e12
add esp, 0xc
test eax, eax
je 0x43e0dc
push dword [ebp - 0x10]
call fcn.0045570f
pop ecx
cmp dword [ebp - 0x18], ebx
je 0x43e0e7
cmp dword [ebp - 0x18], 4
jne 0x43e0f0
push dword [ebp - 0x10]
call fcn.0045579b
pop ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.004508c7
push ebx
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.00454688
mov esi, dword [ebp - 0x34]
push 0x28
pop edi
push edi
lea esi, [esi*4 + 3]
lea eax, [ebp - 0xb8]
push ebx
and esi, 0xfffffffc
push eax
mov dword [ebp - 0x48], esi
call fcn.00472c30
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x3c]
neg eax
add esp, 0x38
mov dword [ebp - 0xb0], eax
xor eax, eax
push 0x20
inc eax
mov word [ebp - 0xac], ax
pop eax
push ebx
push ebx
mov word [ebp - 0xaa], ax
lea eax, [ebp - 0x5c]
push eax
push ebx
lea eax, [ebp - 0xb8]
push eax
push ebx
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x10]
call fcn.00453e2c
push eax
push dword [ebp - 0x10]
call fcn.00453c88
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x3c], ebx
jbe 0x43e2a1
mov dword [ebp - 0x24], ebx
push 1
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call fcn.00450cab
add esp, 0x10
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x34], ebx
jbe 0x43e28f
xor eax, eax
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x5c]
shl edi, 2
lea esi, [edi + ecx]
add esi, dword [ebp - 0x24]
cmp dword [ebp - 0x18], 6
je 0x43e218
cmp dword [ebp - 0x18], 4
je 0x43e218
mov byte [esi + 3], 0xff
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + eax]
mov byte [esi + 2], cl
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + eax + 1]
mov byte [esi + 1], cl
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + eax + 2]
mov byte [esi], cl
jmp 0x43e277
mov eax, dword [ebp - 0x14]
mov cl, byte [edi + eax + 3]
mov byte [esi + 3], cl
mov eax, dword [ebp - 0x14]
movzx eax, byte [edi + eax]
movzx ecx, cl
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
movzx ecx, byte [esi + 3]
xor edx, edx
mov byte [ebp - 0x1d], 1
mov byte [esi + 2], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [edi + eax + 1]
imul eax, ecx
mov ecx, 0xff
div ecx
movzx ecx, byte [esi + 3]
xor edx, edx
mov byte [esi + 1], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [edi + eax + 2]
imul eax, ecx
mov ecx, 0xff
div ecx
mov byte [esi], al
mov eax, dword [ebp - 0x2c]
inc dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
add eax, 3
mov dword [ebp - 0x2c], eax
cmp ecx, dword [ebp - 0x34]
jb 0x43e1db
mov esi, dword [ebp - 0x48]
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x24], esi
cmp eax, dword [ebp - 0x3c]
jb 0x43e1b8
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00453d84
pop ecx
pop ecx
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x10], ebx
je 0x43e2cd
neg eax
sbb eax, eax
lea ecx, [ebp - 0x1c]
and eax, ecx
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00451187
add esp, 0xc
push 0x98
call fcn.00471fcc
mov esi, eax
pop ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 3
cmp esi, ebx
je 0x43e2f4
lea ecx, [esi + 0x10]
call fcn.0042acf4
mov eax, esi
jmp 0x43e2f6
xor eax, eax
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x3c]
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 + 0x568]
xor ecx, ebp
call fcn.00472031
add ebp, 0x56c
leave
ret