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

Disassembly:
push 0x944
mov eax, 0x7b003f
call fcn.00772fd1
mov esi, dword [ebp + 0xc]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x930], esi
mov dword [ebp - 0x928], eax
test esi, esi
jne 0x712fbf
call fcn.006f5438
push eax
lea ecx, [ebp - 0x66c]
call fcn.006f2dce
mov dword [ebp - 4], esi
call fcn.006f54bd
mov ecx, eax
call fcn.006f34ca
test al, al
je 0x712e43
push dword [ebp + 8]
lea ecx, [ebp - 0x66c]
call fcn.006f2fbb
call fcn.006eeb54
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp - 0x66c]
call fcn.00605d60
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x712ded
lea ecx, [ebp - 0x66c]
or dword [ebp - 4], 0xffffffff
call fcn.006f2ec7
jmp 0x713315
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x712dd9
push ebx
mov dword [ebp - 0x944], esi
call fcn.006e70fd
pop ecx
mov esi, eax
lea eax, [ebp - 0x944]
push 0
push eax
push ebx
push esi
push edi
mov dword [ebp - 0x928], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.006f0bed
cmp dword [ebp - 0x944], ebx
je 0x712fb4
push esi
call fcn.006e7106
pop ecx
jmp 0x712dd9
call fcn.006f54bd
push eax
lea ecx, [ebp - 0x66c]
call fcn.006f2f9e
call fcn.006f575e
test al, al
je 0x712e6c
call fcn.006f54c8
mov esi, eax
mov dword [ebp - 0x944], esi
jmp 0x712e8b
push 2
push esi
lea ecx, [ebp - 0x66c]
call fcn.00605d60
push eax
call fcn.007141f8
add esp, 0xc
mov dword [ebp - 0x944], eax
mov esi, eax
test esi, esi
je 0x712dd9
lea eax, [ebp - 0x920]
push eax
lea eax, [ebp - 0x930]
push eax
push 1
push dword [ebp + 8]
push esi
call fcn.00713c39
add esp, 0x14
test eax, eax
jne 0x712dd9
mov ebx, dword [ebp - 0x6f4]
test ebx, ebx
je 0x712dd9
push ebx
call fcn.006e70fd
push 3
push ebx
push eax
push dword [ebp - 0x930]
mov dword [ebp - 0x928], eax
push esi
call fcn.007145b8
mov dword [ebp - 0x934], eax
add esp, 0x18
xor eax, eax
mov dword [ebp - 0x940], eax
mov dword [ebp - 0x93c], eax
mov dword [ebp - 0x938], eax
push 0x5f
pop ecx
mov esi, str.rjjDNknwx0UZ1sQPhamKUzVTJfuYu6l65hx0L6WIJ0LfczLpXFhsqj6dc6zj1tshLkBCHE5iDVd25Bvo8S5tnyxIaB6PxfnSDaFvltKUdkeVxEShmSCkt6c8bYZN2eRfOuyaD5f7Z4TOz63y6HtVG5PyUqPr9nqRzZsCgqhBaZNCS1utuA7LML9jyBIUVBF1j0RH090KYuRYj2LdAKJP0bNJGiDuLi83AeJV5VkGRPC2JSq4X83axKCLDEqxtFeCF9IQj1My9WYHLnpfRPLn8am3SntfuJdleYfKEGCTM1EwE2yUKRx2teMSO6AGZV3XPUrdxk6fDexI3YQw0fZgvr6U1iJqWBQtidgcKGAIUxy8mo6mIsxgEBmzNPONS2
mov byte [ebp - 4], 1
lea edi, [ebp - 0x5a4]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x5a4]
push eax
lea ecx, [ebp - 0x5bc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.00405a50
lea eax, [ebp - 0x5bc]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x940]
call fcn.004082f0
xor eax, eax
lea ecx, [ebp - 0x5bc]
inc eax
push 0
push eax
mov byte [ebp - 4], al
call fcn.004096c0
mov eax, dword [ebp - 0x934]
test eax, eax
je 0x712f94
cmp eax, 0x600
je 0x712f94
mov eax, dword [ebp - 0x928]
push eax
call fcn.006e7106
pop ecx
call fcn.006f575e
test al, al
jne 0x712f84
push dword [ebp - 0x944]
call fcn.00713a93
pop ecx
lea ecx, [ebp - 0x940]
call fcn.006ec102
jmp 0x712dd9
call fcn.006f575e
test al, al
jne 0x712fa9
push dword [ebp - 0x944]
call fcn.00713a93
pop ecx
lea ecx, [ebp - 0x940]
call fcn.006ec102
lea ecx, [ebp - 0x66c]
jmp 0x7130f6
push str.fullpath
push esi
call fcn.0075fe37
pop ecx
pop ecx
test eax, eax
jne 0x713104
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x6f0]
call fcn.006f2df3
push 3
pop eax
xor esi, esi
mov dword [ebp - 4], eax
push esi
push 0x80
push eax
push esi
push 1
push SysReAllocString
lea ecx, [ebp - 0x6f0]
call fcn.00605d60
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x71301f
lea ecx, [ebp - 0x6f0]
jmp 0x712ddf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x713014
push ebx
mov dword [ebp - 0x934], esi
call fcn.006e70fd
mov esi, eax
pop ecx
mov dword [ebp - 0x928], esi
call fcn.00402330
push 0
lea eax, [ebp - 0x934]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x940], eax
mov dword [ebp - 0x93c], eax
mov dword [ebp - 0x938], eax
push 0x58
pop ecx
mov esi, str.ZkdGG4aM98h5UvWoGIYFlp4ZkzLiP9gUG7leExgNXHHi4pdSqObxNzoUlbvRSavHkKpbGyABYiTeFjkzTclBqR2BZnNqx72IIRettmXtJRWDhjyQ0Vt1hrUGebLe5PGRqrArmXT8RQCLsPku63QnkiaFu8MOQLJa91oURipWTf3zhmrZc4gy2YEcC405dDOAPGjEhpzWJjMObFz73ISzafjkyUO37a8VWcVqux9ZMe3owmCKnIn0e0xCJNb3rJayWJFVwYVg7yac9n5bLGCjnFeNp8VhqSZNRrzKFwMWKeVLD1cbqkKpoo1RMHdKmmPL9qlIyTPRsWUFXgCsw31YUW8xBNuuKAvT
mov byte [ebp - 4], 4
lea edi, [ebp - 0x2b4]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x5bc]
movsb byte es:[edi], byte [esi]
call fcn.00405a50
lea eax, [ebp - 0x5bc]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x940]
call fcn.004082f0
push 0
push 1
lea ecx, [ebp - 0x5bc]
call fcn.004096c0
cmp dword [ebp - 0x934], ebx
je 0x7130e5
mov eax, dword [ebp - 0x928]
push eax
call fcn.006e7106
pop ecx
lea ecx, [ebp - 0x940]
call fcn.006ec102
jmp 0x713014
lea ecx, [ebp - 0x940]
call fcn.006ec102
lea ecx, [ebp - 0x6f0]
or dword [ebp - 4], 0xffffffff
call fcn.006f2ec7
jmp 0x713201
push str.respath
push esi
call fcn.0075fe37
pop ecx
pop ecx
test eax, eax
jne 0x71320c
call fcn.006f5429
push 0x877b4c
push dword [ebp + 8]
mov dword [ebp - 0x930], eax
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x934], eax
test eax, eax
jne 0x713144
xor eax, eax
jmp 0x7135d5
xor eax, eax
mov dword [ebp - 0x940], eax
mov dword [ebp - 0x93c], eax
mov dword [ebp - 0x938], eax
push 0x5b
pop ecx
mov esi, str.nqhMc103d03KyY5ssxaG3Zn1bhzXd7Fqm160usg8R4GpKVfiES3cDCkl1qdfOlFGBDOR9G4QYyxXcIk3nzXoLyclVJIhfEU57PeaBcB11zSsI5IEBWtJfgk4NSmNbYZX0nMZBKkB578fi2aTtrxxvrqOpbaU3RGQ4YkIGUGXe20kc5FClRarPwvF9YuEqpwckChkk8PDyhbd7waiH25XcfQjDN1dZXIObN9pYpmdnqqDDalLTRIIfHvsp0wVxzOizeSfRZWmgz7Xid37uMOhaz3nYCptQSToGnzCWoxiDHXBbyyet5UfCoymtfjZUZLrBSL6wVjxvtBGpnnZZkXKsMSBMZfBos46UiMCXESThLvyd
mov dword [ebp - 4], 6
lea edi, [ebp - 0x424]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x5bc]
movsw word es:[edi], word [esi]
call fcn.00405a50
lea eax, [ebp - 0x5bc]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x940]
call fcn.004082f0
push 0
push 1
lea ecx, [ebp - 0x5bc]
mov byte [ebp - 4], 6
call fcn.004096c0
push dword [ebp - 0x934]
mov edi, dword [ebp - 0x930]
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x7131f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x934]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
call fcn.006e70fd
push ebx
push esi
push eax
mov dword [ebp - 0x928], eax
call fcn.0074f6a0
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x940]
call fcn.006ec102
mov esi, dword [ebp - 0x928]
jmp 0x71330d
xor eax, eax
mov dword [ebp - 0x940], eax
mov dword [ebp - 0x93c], eax
mov dword [ebp - 0x938], eax
push 0x4f
pop ecx
mov esi, str.P4oq2UaDjmxJAH1fOnfHKI34ftMizAuZOXJ6h309Ud9gYAzoUPnr1zL9F69BshNUOJAhgB6xFbNq8uiGix1UL9XPA4DERKl2sWlvIdEMuBgUXccY9wAemGh8WeCVWWvwqVvdWiSwD2zkFDNjCyUVpFGPjXKQfA2nBlmiqPT8btdvWh3iNd5a0S0ym7yOInOgEPMmb1jJqF5uzlYTOSTdj7VADW94sE7GbsAhBmeIO0myTwiu2aEkMyIlzdVHXNxt9C33io5tlfhXgYigy2FMtIxfI2LofI9ut4yyxeGd6t0fi47Z92ac1F8PVy5X
mov dword [ebp - 4], 8
lea edi, [ebp - 0x150]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x5bc]
movsb byte es:[edi], byte [esi]
call fcn.00405a50
lea eax, [ebp - 0x5bc]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x940]
call fcn.004082f0
push 0
push 1
lea ecx, [ebp - 0x5bc]
mov byte [ebp - 4], 8
call fcn.004096c0
push dword [ebp - 0x930]
push dword [ebp + 8]
call fcn.006f5429
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x71329f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x940]
call fcn.006ec102
jmp 0x713315
push edi
call fcn.006f5429
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x930], eax
test eax, eax
jne 0x7132bf
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x71328e
call fcn.00402330
push edi
call fcn.006f5429
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x71328e
push ebx
call fcn.006e70fd
pop ecx
push ebx
push dword [ebp - 0x930]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.0074f6a0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x940]
call fcn.006ec102
test esi, esi
jne 0x71339a
call fcn.006ecf9c
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x71313d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x71313d
and dword [ebp - 0x928], 0
push ebx
call fcn.006e70fd
pop ecx
mov esi, eax
call fcn.006f1ea6
push 0
lea eax, [ebp - 0x928]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x928], ebx
je 0x713392
push esi
call fcn.006e7106
pop ecx
xor esi, esi
test esi, esi
je 0x71313d
push 4
lea eax, [ebp - 0x950]
push eax
lea eax, [ebp - 0x948]
push eax
lea eax, [ebp - 0x94c]
push eax
push ebx
push esi
call fcn.0072736b
push esi
mov edi, eax
call fcn.006e7106
add esp, 0x1c
test edi, edi
je 0x71313d
push 0x2c
lea eax, [ebp - 0x5e8]
push 0
push eax
call fcn.0074fc20
add esp, 0xc
call fcn.006ed717
mov eax, dword [ebp - 0x948]
xor bl, bl
mov ecx, dword [ebp - 0x94c]
neg eax
and dword [ebp - 0x5d8], 0
and dword [ebp - 0x92c], 0
mov dword [ebp - 0x5e4], ecx
imul ecx, dword [ebp - 0x948]
mov dword [ebp - 0x5e0], eax
xor eax, eax
inc eax
mov dword [ebp - 0x5e8], 0x28
mov word [ebp - 0x5dc], ax
push 0x20
pop eax
shl ecx, 2
mov word [ebp - 0x5da], ax
mov dword [ebp - 0x5d4], ecx
mov byte [ebp - 0x921], bl
call fcn.00402330
xor ecx, ecx
lea eax, [ebp - 0x92c]
push ecx
push ecx
push eax
push ecx
lea eax, [ebp - 0x5e8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x930], eax
test eax, eax
je 0x71313d
mov eax, dword [ebp - 0x94c]
xor esi, esi
imul eax, dword [ebp - 0x948]
test eax, eax
jle 0x713585
mov edx, 0xff
mov eax, dword [ebp - 0x92c]
mov cl, byte [edi + esi*4 + 3]
mov byte [eax + esi*4 + 3], cl
mov ebx, dword [ebp - 0x92c]
cmp byte [ebx + esi*4 + 3], dl
jae 0x713504
movzx ecx, byte [edi + esi*4 + 3]
xor edx, edx
movzx eax, byte [edi + esi*4 + 2]
imul eax, ecx
mov ecx, 0xff
div ecx
xor edx, edx
mov byte [ebx + esi*4], al
mov ebx, 0xff
movzx ecx, byte [edi + esi*4 + 3]
movzx eax, byte [edi + esi*4 + 1]
imul eax, ecx
mov ecx, dword [ebp - 0x92c]
div ebx
xor edx, edx
mov byte [ecx + esi*4 + 1], al
movzx ecx, byte [edi + esi*4 + 3]
movzx eax, byte [edi + esi*4]
imul eax, ecx
mov ecx, dword [ebp - 0x92c]
div ebx
xor edx, edx
inc edx
mov byte [ecx + esi*4 + 2], al
mov bl, dl
mov byte [ebp - 0x921], bl
jmp 0x71352f
mov al, byte [edi + esi*4 + 2]
xor edx, edx
mov byte [ebx + esi*4], al
inc edx
mov eax, dword [ebp - 0x92c]
mov cl, byte [edi + esi*4 + 1]
mov bl, byte [ebp - 0x921]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x92c]
mov cl, byte [edi + esi*4]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x92c]
mov ecx, dword [ebp + 0x10]
cmp dword [eax + esi*4], ecx
jne 0x71356a
mov byte [eax + esi*4], 0
mov bl, dl
mov eax, dword [ebp - 0x92c]
mov byte [ebp - 0x921], bl
mov byte [eax + esi*4 + 1], 0
mov eax, dword [ebp - 0x92c]
mov byte [eax + esi*4 + 2], 0
mov eax, dword [ebp - 0x92c]
mov byte [eax + esi*4 + 3], 0
mov eax, dword [ebp - 0x94c]
inc esi
imul eax, dword [ebp - 0x948]
mov edx, 0xff
cmp esi, eax
jl 0x71348a
push edi
call fcn.006e7075
push 0x9c
call fcn.006e707a
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x934], esi
mov dword [ebp - 4], 0xa
test esi, esi
je 0x7135b4
lea ecx, [esi + 0x14]
call fcn.006f2e17
jmp 0x7135b6
xor esi, esi
mov eax, dword [ebp - 0x930]
mov dword [esi], eax
mov eax, esi
mov ecx, dword [ebp - 0x94c]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x948]
mov dword [esi + 8], ecx
mov byte [esi + 0x10], bl
call fcn.00772f7b
ret