Function at 0x43da65
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, 0x4a9736
call fcn.004726b8
mov eax, dword [ebp + 0x578]
xor ebx, ebx
cmp eax, ebx
jne 0x43dcfc
or esi, 0xffffffff
push esi
call fcn.0042c1c4
push eax
lea ecx, [ebp + 0x4e4]
call fcn.0042b895
push esi
mov dword [ebp - 4], ebx
call fcn.0042c1ce
push eax
lea ecx, [ebp + 0x460]
call fcn.0042b895
mov byte [ebp - 4], 1
call fcn.0042c1d8
test eax, eax
je 0x43db98
push 3
call fcn.0042c1de
push eax
call fcn.0042c1d8
push eax
call fcn.00425692
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.00425839
add esp, 0x20
test eax, eax
je 0x43db30
lea ecx, [ebp + 0x460]
mov byte [ebp - 4], bl
call fcn.0042ac65
mov dword [ebp - 4], esi
lea ecx, [ebp + 0x4e4]
call fcn.0042ac65
xor eax, eax
jmp 0x43e261
mov edi, dword [ebp + 0x45c]
cmp edi, ebx
je 0x43db0d
lea eax, [edi + 2]
push eax
call fcn.00471ed2
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.00425920
add esp, 0x18
cmp eax, ebx
je 0x43db90
cmp eax, 0x600
je 0x43db90
push esi
call fcn.004736f7
push dword [ebp - 0x30]
call fcn.00424d2d
pop ecx
pop ecx
lea ecx, [ebp + 0x460]
mov byte [ebp - 4], bl
call fcn.0042ac65
or dword [ebp - 4], 0xffffffff
jmp 0x43db1e
push dword [ebp - 0x30]
jmp 0x43dcd7
lea ecx, [ebp + 0x460]
call fcn.0042ad98
test al, al
je 0x43dc3d
push dword [ebp + 0x574]
lea ecx, [ebp + 0x4e4]
call fcn.0042ae47
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp + 0x4e4]
call fcn.0042adc3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp eax, esi
je 0x43db0d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x43db7c
lea eax, [edi + 2]
push eax
mov dword [ebp - 0x50], ebx
call fcn.00471ed2
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 0x43dcdd
push esi
call fcn.004736f7
jmp 0x43db7b
call fcn.0042c1ce
push eax
lea ecx, [ebp + 0x4e4]
call fcn.0042ae47
push 2
push ebx
lea ecx, [ebp + 0x4e4]
call fcn.0042adc3
push eax
call fcn.00425692
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.00425839
add esp, 0x20
test eax, eax
jne 0x43db0d
mov edi, dword [ebp + 0x22c]
cmp edi, ebx
je 0x43db7c
lea eax, [edi + 2]
push eax
call fcn.00471ed2
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.00425920
add esp, 0x18
cmp eax, ebx
je 0x43dcd4
cmp eax, 0x600
je 0x43dcd4
push esi
call fcn.004736f7
push dword [ebp - 0x24]
jmp 0x43db75
push dword [ebp - 0x24]
call fcn.00424d2d
pop ecx
lea ecx, [ebp + 0x460]
mov byte [ebp - 4], bl
call fcn.0042ac65
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x4e4]
call fcn.0042ac65
jmp 0x43dd7b
push eax
push dword [ebp + 0x574]
call fcn.0042c1b5
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x43db29
push esi
call fcn.0042c1b5
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x43db29
push esi
call fcn.0042c1b5
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x43db29
lea eax, [edi + 2]
push eax
call fcn.00471ed2
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.004727d0
add esp, 0xc
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0x574], ebx
je 0x43df26
push str..svg
push dword [ebp + 0x574]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x43df26
fld dword [0x4b32ec]
push ecx
fstp dword [esp]
push 0x4b32e8
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
call fcn.0043d93a
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x43deb9
fld dword [edi]
call fcn.00478150
push eax
call fcn.004300f6
fld dword [edi + 4]
mov dword [ebp - 0x28], eax
call fcn.00478150
push eax
call fcn.004300f6
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
call fcn.0043da28
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x43deb9
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 0x43deb6
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.00430019
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
sub esp, 0xc
fmul qword [0x4b32e0]
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.00438c28
add esp, 0x24
mov edi, dword [ebp - 0x24]
cmp dword [ebp - 0x14], ebx
je 0x43dec7
push dword [ebp - 0x14]
call fcn.0043675c
pop ecx
cmp edi, ebx
je 0x43ded2
push edi
call fcn.00436711
pop ecx
push esi
call fcn.004736f7
mov edi, dword [ebp - 0x2c]
pop ecx
cmp edi, ebx
je 0x43db29
push 0x98
call fcn.00471f16
mov esi, eax
pop ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 2
cmp esi, ebx
je 0x43df09
lea ecx, [esi + 0x10]
call fcn.0042ac40
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 0x43e261
push ebx
push ebx
push ebx
push 0x4b32d4
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.004538a9
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x43e1ff
push eax
call fcn.0044d73c
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x43e202
push 0x40
push fcn.0047b9e4
push dword [ebp - 0x10]
call fcn.00459789
push 0x4ced28
push dword [ebp - 4]
push 0x472376
push 3
push eax
call fcn.0047ba98
add esp, 0x20
test eax, eax
jne 0x43e1ff
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x60], eax
push 0x4398c4
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x10]
call fcn.0045902e
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.00450563
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.004545d7
add esp, 0x38
cmp dword [ebp - 0x44], 0x10
jne 0x43dff2
push dword [ebp - 0x10]
call fcn.00454c8b
pop ecx
cmp dword [ebp - 0x18], 3
jne 0x43e001
push dword [ebp - 0x10]
call fcn.0045565e
pop ecx
cmp dword [ebp - 0x44], 8
jge 0x43e010
push dword [ebp - 0x10]
call fcn.0045565e
pop ecx
push 0x10
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.00453d61
add esp, 0xc
test eax, eax
je 0x43e02d
push dword [ebp - 0x10]
call fcn.0045565e
pop ecx
cmp dword [ebp - 0x18], ebx
je 0x43e038
cmp dword [ebp - 0x18], 4
jne 0x43e041
push dword [ebp - 0x10]
call fcn.004556ea
pop ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.00450818
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.004545d7
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.00472b80
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.00453d7b
push eax
push dword [ebp - 0x10]
call fcn.00453bd7
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x3c], ebx
jbe 0x43e1f2
mov dword [ebp - 0x24], ebx
push 1
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call fcn.00450bfc
add esp, 0x10
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x34], ebx
jbe 0x43e1e0
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 0x43e169
cmp dword [ebp - 0x18], 4
je 0x43e169
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 0x43e1c8
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 0x43e12c
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 0x43e109
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00453cd3
pop ecx
pop ecx
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x10], ebx
je 0x43e21e
neg eax
sbb eax, eax
lea ecx, [ebp - 0x1c]
and eax, ecx
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004510d8
add esp, 0xc
push 0x98
call fcn.00471f16
mov esi, eax
pop ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 3
cmp esi, ebx
je 0x43e245
lea ecx, [esi + 0x10]
call fcn.0042ac40
mov eax, esi
jmp 0x43e247
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.00471f7b
add ebp, 0x56c
leave
ret