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

Disassembly:
push 0x850
mov eax, 0x55042f
call fcn.00513ea1
mov edi, dword [ebp + 0xc]
call fcn.00402160
xor ebx, ebx
test edi, edi
jne 0x4a3780
call fcn.00482ca4
push eax
lea ecx, [ebp - 0x574]
call fcn.004806c7
mov dword [ebp - 4], ebx
call fcn.00482caa
mov ecx, eax
call fcn.00480e97
test al, al
je 0x4a3681
push dword [ebp + 8]
lea ecx, [ebp - 0x574]
call fcn.00480907
call fcn.0047b3f7
push ebx
push 0x80
push 3
push ebx
push 1
push connect
lea ecx, [ebp - 0x574]
call fcn.004d71d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x848], eax
cmp eax, 0xffffffff
jne 0x4a361c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x574]
call fcn.00480803
jmp 0x4a3a46
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x82c], eax
test esi, esi
je 0x4a3608
push esi
mov dword [ebp - 0x840], ebx
call fcn.004741dd
pop ecx
push ebx
mov edi, eax
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x840]
push eax
push esi
push edi
push dword [ebp - 0x848]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x848]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0047c93a
cmp dword [ebp - 0x840], esi
je 0x4a3760
push edi
call fcn.004741e6
pop ecx
jmp 0x4a3608
call fcn.00482caa
push eax
lea ecx, [ebp - 0x574]
call fcn.004808ea
call fcn.00482feb
test al, al
je 0x4a36a2
call fcn.00482cb0
jmp 0x4a36b9
push 2
push ebx
lea ecx, [ebp - 0x574]
call fcn.004d71d0
push eax
call fcn.004a76e1
add esp, 0xc
mov dword [ebp - 0x840], eax
test eax, eax
je 0x4a3608
lea ecx, [ebp - 0x828]
push ecx
lea ecx, [ebp - 0x838]
push ecx
push 1
push dword [ebp + 8]
push eax
call fcn.004a7122
add esp, 0x14
test eax, eax
jne 0x4a3608
mov esi, dword [ebp - 0x5fc]
mov dword [ebp - 0x82c], esi
test esi, esi
je 0x4a3608
push esi
call fcn.004741dd
push 3
push esi
mov esi, dword [ebp - 0x840]
mov edi, eax
push edi
push dword [ebp - 0x838]
mov dword [ebp - 0x83c], edi
push esi
call fcn.004a7aa1
add esp, 0x18
test eax, eax
je 0x4a3750
cmp eax, 0x600
je 0x4a3750
push edi
call fcn.004741e6
pop ecx
call fcn.00482feb
test al, al
jne 0x4a3608
push esi
call fcn.004a6f7c
jmp 0x4a367e
call fcn.00482feb
test al, al
jne 0x4a3760
push esi
call fcn.004a6f7c
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x574]
call fcn.00480803
mov edi, dword [ebp - 0x82c]
mov esi, dword [ebp - 0x83c]
jmp 0x4a3a3e
push str.fullpath
push edi
call fcn.00500cc7
pop ecx
pop ecx
test eax, eax
jne 0x4a38c0
mov dword [ebp - 0x854], ebx
mov dword [ebp - 0x850], ebx
mov dword [ebp - 0x84c], ebx
push 0x6c
pop ecx
mov esi, str.wKpusjgCyAlgEo66mMX9BvqwpfIEp6QauryheeZv9xl5Khle3CDmWxB7OKAUjqONZzccRl8JXtGFnbAI4jmF6Ub4KGlifeUawixmWh7Ly12Y1S1O0Uj3ZkqFTAjnQ3gsVZ8m1eCWTKxc0p0LZAGEFDkyFmsqTbuY2MBQzTBhvXyZ1JlGXmPim7c5VrFDO9p4tkt3b7pYMVCvIarb4g3RSxdulQARgIrSkTgyIZ0OKSvNLjgP1Guy2zNSNK15m7o1wAG4MNK4C5ebTT8Z0MgPavoW254DE3HHtubK78Se2XHaDJQsRPKFSTTV0mdEb4W2FspjnTG73kFrFowfv3YQVCmVJq7Fs7hJRtHqxO6zQv8w3OowEDOvWndO12qFkfGHLJ7JFNCwATCqVKmI6OiC9RzGs9UTuWfcnHJGddKstZSMQH3Ox
mov dword [ebp - 4], 1
lea edi, [ebp - 0x2d0]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x4c4]
movsw word es:[edi], word [esi]
call fcn.004057d0
lea eax, [ebp - 0x4c4]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x854]
call fcn.00408170
xor eax, eax
lea ecx, [ebp - 0x4c4]
inc eax
push ebx
push eax
mov byte [ebp - 4], al
call fcn.004096c0
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x5f8]
call fcn.004806ec
push ebx
push 0x80
push 3
push ebx
push 1
push connect
lea ecx, [ebp - 0x5f8]
mov byte [ebp - 4], 3
call fcn.004d71d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x82c], eax
cmp eax, 0xffffffff
jne 0x4a385b
lea ecx, [ebp - 0x5f8]
call fcn.00480803
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x854]
call fcn.0047920e
jmp 0x4a3a46
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4a383c
push edi
mov dword [ebp - 0x848], ebx
call fcn.004741dd
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x848]
push eax
push edi
push esi
push dword [ebp - 0x82c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x82c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0047cc2e
cmp dword [ebp - 0x848], edi
je 0x4a38b0
push esi
call fcn.004741e6
pop ecx
jmp 0x4a383c
lea ecx, [ebp - 0x5f8]
call fcn.00480803
jmp 0x4a39ae
push str.respath
push edi
call fcn.00500cc7
pop ecx
pop ecx
test eax, eax
jne 0x4a39bf
call fcn.0047bf53
call fcn.00482c16
push 0x6194cc
push dword [ebp + 8]
mov dword [ebp - 0x838], eax
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x82c], eax
test eax, eax
je 0x4a3d8c
mov dword [ebp - 0x854], ebx
mov dword [ebp - 0x850], ebx
mov dword [ebp - 0x84c], ebx
push 0x42
pop ecx
mov esi, str.KQ3Oy9Va6C4jsRmv1weHtjhT5hW89XfYMSL1WFqxP0HBTVGr8KGNWniHEdNr5C0VsVJwl558pJ4fPcRLdk3EYk1bxiSFSqtU51p4ZTbZeQrX5Lf7lKjz2eN9AKP8wxppLhCgRsrMxRq9wUPlP10LsoOW5NwgPdJTUdIrX2yQ2CjFqXGg9ypVgkOEJrVomEhAQno1SRclIm4QAP1cgm6Rxi85GjnJc7ismRXvrf7DWFgWXUWyyCjXuGFVytZNZWbu2PH3OKiB
mov dword [ebp - 4], 4
lea edi, [ebp - 0x11c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x4c4]
movsb byte es:[edi], byte [esi]
call fcn.004057d0
lea eax, [ebp - 0x4c4]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x854]
call fcn.00408170
push ebx
push 1
lea ecx, [ebp - 0x4c4]
mov byte [ebp - 4], 4
call fcn.004096c0
push dword [ebp - 0x82c]
mov edi, dword [ebp - 0x838]
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a39aa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x82c]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
call fcn.004741dd
push edi
push esi
mov esi, eax
push esi
call fcn.004f0560
add esp, 0x10
jmp 0x4a39ae
mov edi, ebx
mov esi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x854]
call fcn.0047920e
jmp 0x4a3a3e
call fcn.0047bd5a
push edi
push dword [ebp + 8]
call fcn.00482c16
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x82c], esi
test esi, esi
je 0x4a3a46
push esi
call fcn.00482c16
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x838], eax
push esi
test eax, eax
jne 0x4a3a00
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4a3a46
call fcn.00482c16
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4a3a46
push edi
call fcn.004741dd
pop ecx
push edi
push dword [ebp - 0x838]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.004f0560
add esp, 0xc
push dword [ebp - 0x82c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
jne 0x4a3ad4
call fcn.0047d19e
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x82c], eax
cmp eax, 0xffffffff
je 0x4a3d8c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4a3d8c
push edi
mov dword [ebp - 0x83c], ebx
call fcn.004741dd
pop ecx
mov esi, eax
call fcn.0047bd5a
push ebx
lea eax, [ebp - 0x83c]
push eax
push edi
push esi
push dword [ebp - 0x82c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x82c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x83c], edi
je 0x4a3acc
push esi
call fcn.004741e6
pop ecx
mov esi, ebx
test esi, esi
je 0x4a3d8c
call fcn.00402160
push 4
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x858]
push eax
push edi
push esi
call fcn.004cbdf1
mov edi, eax
push esi
mov dword [ebp - 0x82c], edi
call fcn.004741e6
add esp, 0x1c
test edi, edi
je 0x4a3d8c
push 0x2c
lea eax, [ebp - 0x4f0]
push ebx
push eax
call fcn.004f0ae0
add esp, 0xc
mov dword [ebp - 0x854], ebx
mov dword [ebp - 0x850], ebx
mov dword [ebp - 0x84c], ebx
push 0x76
pop ecx
mov esi, str.iegoeRzLTNnS7Bv4aJTRY0jn4XKr9DXi6q1CQkFSuJE2V8DeWirKKlFrsKhuPvPJ9SJJEKpEgJIzsqRSHpUtQNE4hoDMtrBK718yKTbg34mBaPDFyrdG626Tv00IKQkQE6UJCzsXKb4qp2fuJhtNa4msnYaFJHa1nFZe4CaAk3uUmFNF9SiWcweuxhjKcKPnm1gYgM5C3jx3iwfqh7YWBqseNS7oCYKB1rM4L0xVmHEYD4gj7Uygj6UphADDds7VGWMp6JqKg6bKXnWqTAhskXMSF1LKjpiG7FzzOqSofrW1q5fTRmPFy1p5yGxaoJ4sNcvuPOEUwGhqDVll0VroaW9T0QConJsPzUX5YT7ku2jSyetecmJ6BzwlVP2FFQOigK6UtcInKYvp0u9UTF0niVfr9nbt5APiz9ZMiQjczylscAfqgrzEPCsozGxkOygewFkp4RLLUk9P2PIEFVFCcRrxH
mov dword [ebp - 4], 6
lea edi, [ebp - 0x4ac]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x4c4]
movsw word es:[edi], word [esi]
call fcn.004057d0
lea eax, [ebp - 0x4c4]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x854]
call fcn.00408170
xor esi, esi
mov byte [ebp - 4], 6
push ebx
inc esi
lea ecx, [ebp - 0x4c4]
push esi
call fcn.004096c0
mov ecx, dword [ebp - 0x858]
mov eax, dword [ebp - 0x844]
mov dword [ebp - 0x4ec], ecx
neg eax
imul ecx, dword [ebp - 0x844]
mov dword [ebp - 0x4e8], eax
push 0x20
pop eax
mov dword [ebp - 0x4f0], 0x28
shl ecx, 2
mov word [ebp - 0x4e4], si
mov word [ebp - 0x4e2], ax
mov dword [ebp - 0x4e0], ebx
mov dword [ebp - 0x4dc], ecx
mov byte [ebp - 0x82d], bl
mov dword [ebp - 0x834], ebx
call fcn.0047cea7
push ebx
push ebx
lea eax, [ebp - 0x834]
push eax
push ebx
lea eax, [ebp - 0x4f0]
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x840], eax
test eax, eax
je 0x4a3d7d
mov eax, dword [ebp - 0x858]
mov esi, ebx
imul eax, dword [ebp - 0x844]
mov edi, dword [ebp - 0x82c]
test eax, eax
jle 0x4a3d25
mov edx, 0xff
mov eax, dword [ebp - 0x834]
mov cl, byte [edi + esi*4 + 3]
mov byte [eax + esi*4 + 3], cl
mov ecx, dword [ebp - 0x834]
cmp byte [ecx + esi*4 + 3], dl
jae 0x4a3cb0
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
mov ecx, dword [ebp - 0x834]
xor edx, edx
mov byte [ecx + esi*4], al
movzx ecx, byte [edi + esi*4 + 3]
movzx eax, byte [edi + esi*4 + 1]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0x834]
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, 0xff
div ecx
mov ecx, dword [ebp - 0x834]
xor edx, edx
inc edx
mov byte [ebp - 0x82d], dl
mov byte [ecx + esi*4 + 2], al
jmp 0x4a3cd5
mov al, byte [edi + esi*4 + 2]
xor edx, edx
mov byte [ecx + esi*4], al
inc edx
mov eax, dword [ebp - 0x834]
mov cl, byte [edi + esi*4 + 1]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x834]
mov cl, byte [edi + esi*4]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x834]
mov ecx, dword [ebp + 0x10]
cmp dword [eax + esi*4], ecx
jne 0x4a3d0a
mov byte [eax + esi*4], bl
mov eax, dword [ebp - 0x834]
mov byte [ebp - 0x82d], dl
mov byte [eax + esi*4 + 1], bl
mov eax, dword [ebp - 0x834]
mov byte [eax + esi*4 + 2], bl
mov eax, dword [ebp - 0x834]
mov byte [eax + esi*4 + 3], bl
mov eax, dword [ebp - 0x858]
inc esi
imul eax, dword [ebp - 0x844]
mov edx, 0xff
cmp esi, eax
jl 0x4a3c2d
push edi
call fcn.004cbd53
push 0x9c
call fcn.00474152
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x838], esi
mov byte [ebp - 4], 8
test esi, esi
je 0x4a3d51
lea ecx, [esi + 0x14]
call fcn.00480710
mov ebx, esi
mov eax, dword [ebp - 0x840]
mov dword [ebx], eax
mov eax, dword [ebp - 0x858]
mov dword [ebx + 4], eax
mov ecx, dword [ebp - 0x844]
mov al, byte [ebp - 0x82d]
mov byte [ebp - 4], 6
mov dword [ebx + 8], ecx
mov byte [ebx + 0x10], al
call fcn.0047b203
lea ecx, [ebp - 0x854]
call fcn.0047920e
mov eax, ebx
jmp 0x4a3d8e
xor eax, eax
call fcn.00513e4b
ret