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

Disassembly:
push 0xb3c
mov eax, 0x55039c
call fcn.00513ea1
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test esi, esi
jne 0x4a301e
mov dword [ebp - 0xb28], ebx
mov dword [ebp - 0xb24], ebx
mov dword [ebp - 0xb20], ebx
push 0x5d
pop ecx
mov esi, str.3uxFyggmVrz9PJcJsGJ9l1lfkWqmQcoa8GtciLwSUhy7h2s534Vgu0JaH6pjOCemnjNX4JBNAbNjLanKhN0o82m7mooVDRGn93iikuk3Q7naGxu7pyLSSwXhJujoMp63i6HNB1manPEtjs6kL6kMjMvziQnTHZdSPlz0AoEpbpKk5l6LzZeOF0IIrFpSK78yWUaMcnEZDq3tYSSFrSxlFSYvQnCL5BxqsRsEAGkVUsZwH50o7XcnGqUBY8xPO0Hl3WXGOPt9Pxd211MMmU5IMq8f1q4KCs3AdroQM3P61i8aVg7hBEITwjY3cj4MJ9zR875VE24oY1zcIiH2bHZkYcJPia2B1tVP3kE3PYw5yk4umbDZrDD
mov dword [ebp - 4], ebx
lea edi, [ebp - 0x420]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x80c]
call fcn.004057d0
lea eax, [ebp - 0x80c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xb28]
call fcn.00408170
push ebx
push 1
lea ecx, [ebp - 0x80c]
mov byte [ebp - 4], bl
call fcn.004096c0
call fcn.00482ca4
push eax
lea ecx, [ebp - 0x8d4]
call fcn.004806c7
mov byte [ebp - 4], 2
call fcn.00482caa
mov ecx, eax
call fcn.00480e97
test al, al
je 0x4a2ec4
call fcn.0047e463
push dword [ebp + 8]
lea ecx, [ebp - 0x8d4]
call fcn.00480907
push ebx
push 0x80
push 3
push ebx
push 1
push connect
lea ecx, [ebp - 0x8d4]
call fcn.004d71d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xb10], eax
cmp eax, 0xffffffff
jne 0x4a2ddf
lea ecx, [ebp - 0x8d4]
call fcn.00480803
lea ecx, [ebp - 0xb28]
call fcn.0047920e
jmp 0x4a309c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x4a2e08
lea ecx, [ebp - 0x8d4]
call fcn.00480803
lea ecx, [ebp - 0xb28]
call fcn.0047920e
jmp 0x4a309a
xor esi, esi
push ebx
mov dword [ebp - 0xb18], esi
call fcn.004741dd
pop ecx
mov dword [ebp - 0xb08], eax
mov dword [ebp - 0x800], esi
mov dword [ebp - 0x7fc], esi
mov dword [ebp - 0x7f8], esi
push 0x77
pop ecx
mov esi, str.lhWADJaoIT1s0lBns42cxjSFGlYTnHQbYSNomtAQAJ12xeKZqQ6b4JKryj7bMbiJgG9DJnd4fMNMFtztrYCwlAscfDzTmsqgEaI0QdhOkigdFcb3IKWp5BqbJrmste42MwvvsudqHLFvsHVpudRuPzuDSwfzLmadBy3mDs0PXzd6JdXHaumJkTWgRVTRGcMSw9gfVjDbpyioM67e0oCEay5TewhQm5kohZ1dfxGJGgcdGOzeg6OWAhg7mGrLoUrfpJ7mo1iigyGcOjprrCVblVNnYzFKiOJnya5seF2R0oWsmRg2l759pYBugOItPF13EhFhWxwI5eyTbHkAna4B2RfCXmdW4DQdLZcPJckbNpJ6SXkr1bLP7qY0GsMkhQ2xmYvf0qiYENO48dSDdfgygmArWUOGD0ojw44Jlt0BXm73eO68oRwZZgeNobYjTnjx67PqVRmK2VRHMR11hifPDvj1EJW3D
mov byte [ebp - 4], 3
lea edi, [ebp - 0x600]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x600]
push eax
lea ecx, [ebp - 0x824]
movsw word es:[edi], word [esi]
call fcn.004057d0
lea eax, [ebp - 0x824]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x800]
call fcn.00408170
push 0
push 1
lea ecx, [ebp - 0x824]
call fcn.004096c0
mov esi, dword [ebp - 0xb08]
lea eax, [ebp - 0xb18]
mov edi, dword [ebp - 0xb10]
push 0
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 - 0xb18], ebx
je 0x4a2ff7
push esi
call fcn.004741e6
pop ecx
lea ecx, [ebp - 0x800]
call fcn.0047920e
jmp 0x4a2ded
mov dword [ebp - 0x800], ebx
mov dword [ebp - 0x7fc], ebx
mov dword [ebp - 0x7f8], ebx
push 0x7c
pop ecx
mov esi, str.7cUHy5F5YRXsnBHAp6nvMdhONWsX94eLhfXZHkyuEa9nOgFxGuArXP7V92q77iBVmbmxQ0drGjA5Ouaqm6xrLaZMsBWbQzUEIVNQa07k4DSVXQEU0IDEOHVf2hzO6G4ncrCwkYNstrkYpf84wySawflCETQdZxfYMoBAvpa1ZtIwgxLn2EOhZ3e09unN3iSf43WFg6TFIm09sncdIJi6PBexyRpqOvbsQbSaHaeyUPOWIqX5GHcL54xkmAtyhP67ELdzSeTQVt6rMhpWK7zOltC6v07NKrrdfbTbvKB3Mx3I2MDjVAaxZYBXYYkWrOiEJI4IaUADrD7120Z1WpUmFYuAJpVbtPSIexQubueyp4Sad602IYy24eRGRshdew7sNlC2F7hXSFcqbBLA3wpxw98fQvyEUGbYu5v5MvOK5KK98udIY4AdHOgOEhVPHM6sr9IT8ll1N4sd6HPMxaPrCP1MZXHzTseUYSd8oj8abYsnxgZnp
mov byte [ebp - 4], 5
lea edi, [ebp - 0x7f4]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x7f4]
push eax
lea ecx, [ebp - 0x824]
movsw word es:[edi], word [esi]
call fcn.004057d0
lea eax, [ebp - 0x824]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x800]
call fcn.00408170
push ebx
push 1
lea ecx, [ebp - 0x824]
mov byte [ebp - 4], 5
call fcn.004096c0
call fcn.00482caa
push eax
lea ecx, [ebp - 0x8d4]
call fcn.004808ea
call fcn.00482feb
test al, al
je 0x4a2f47
call fcn.00482cb0
jmp 0x4a2f5e
push 2
push ebx
lea ecx, [ebp - 0x8d4]
call fcn.004d71d0
push eax
call fcn.004a76e1
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4a2f74
lea ecx, [ebp - 0x800]
call fcn.0047920e
jmp 0x4a2dc4
lea eax, [ebp - 0xb04]
push eax
lea eax, [ebp - 0xb10]
push eax
push 1
push dword [ebp + 8]
push edi
call fcn.004a7122
add esp, 0x14
test eax, eax
jne 0x4a2f64
mov ebx, dword [ebp - 0x8d8]
test ebx, ebx
je 0x4a2eb4
push ebx
call fcn.004741dd
push 3
push ebx
mov esi, eax
push esi
push dword [ebp - 0xb10]
push edi
call fcn.004a7aa1
add esp, 0x18
test eax, eax
je 0x4a2fe7
cmp eax, 0x600
je 0x4a2fe7
push esi
call fcn.004741e6
pop ecx
call fcn.00482feb
test al, al
jne 0x4a2eb4
push edi
call fcn.004a6f7c
jmp 0x4a2eb3
call fcn.00482feb
test al, al
jne 0x4a2ff7
push edi
call fcn.004a6f7c
pop ecx
lea ecx, [ebp - 0x800]
call fcn.0047920e
lea ecx, [ebp - 0x8d4]
call fcn.00480803
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb28]
call fcn.0047920e
jmp 0x4a3092
call fcn.00402160
push esi
push dword [ebp + 8]
call fcn.00482c16
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4a309c
push edi
call fcn.00482c16
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xb10], eax
push edi
test eax, eax
jne 0x4a3059
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4a309c
call fcn.00482c16
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4a309a
push ebx
call fcn.004741dd
pop ecx
push ebx
push dword [ebp - 0xb10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.004f0560
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
jne 0x4a3214
xor ebx, ebx
mov dword [ebp - 0x800], ebx
mov dword [ebp - 0x7fc], ebx
mov dword [ebp - 0x7f8], ebx
push 0x4e
pop ecx
mov esi, str.5wUbnuwpL8AabcxB9gf8unFflRA0pnIZZmUzDYfmXtwGiyDY5xEsHM5utsblKK7uuZYNAPVD2XDwaRbuAb88lVS7eHQ5767rbHjgypKcc65TkJnPiEwfIRMg8wsEOp7ZijE2O7TlUwTXTdvQPUrjuC3aQFoawbd64T3LODy1vGQQ8X931lK8lT6J3f9PuOL55vXFodphlEp9FidzEFCPsyCTR4fJW1dtVMybHfsG5UydxWVDyhJgmdcFip9VfzfmuSitlt6zqlSsFx0BQDPJeKdRl4W30NsZQhIvH8wkpuBOhHJMb5gcJ57XSS
mov dword [ebp - 4], 7
lea edi, [ebp - 0x14c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x824]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.004057d0
lea eax, [ebp - 0x824]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x800]
call fcn.00408170
push ebx
push 1
lea ecx, [ebp - 0x824]
mov byte [ebp - 4], 7
call fcn.004096c0
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 - 0xb14], eax
cmp eax, 0xffffffff
jne 0x4a3136
lea ecx, [ebp - 0x800]
call fcn.0047920e
jmp 0x4a320d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4a3126
xor esi, esi
push ebx
mov dword [ebp - 0xb1c], esi
call fcn.004741dd
pop ecx
mov dword [ebp - 0xb08], eax
mov dword [ebp - 0xb28], esi
mov dword [ebp - 0xb24], esi
mov dword [ebp - 0xb20], esi
push 0x57
pop ecx
mov esi, str.pTLePUuzDE05pRaQuSVjZWRDT5QXNhzgiUAEhzmwAKJPaS5fBKJsdYbiQjudOgAQ8MdF6YzgFflB1saYxCafMuK0GDRKQ16NewJCujsthjTPIlHuModm7wpSMKnwLgGzGcMPh76t2lvgAawjIzlDJuyDoK7Qup6s0DAVnnKzwmHk7WR42rmZIiYazAolI5YEy0J9UuMKFAVoPF9lGLU01frZz7YNQQjqv9Bz9wd73OEk96aCkXmEJl1UCBeJSMbbq0LfwmdWufAgRcIoAkUZ50UElx7QLKSWWjfG5Z27BsDt00o0IkwySTqNn4ynpBdPEmlYdG1ecEr8LhQBBqTnKUQPgtYUMq
mov byte [ebp - 4], 9
lea edi, [ebp - 0x2ac]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x824]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.004057d0
lea eax, [ebp - 0x824]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0xb28]
call fcn.00408170
push 0
push 1
lea ecx, [ebp - 0x824]
call fcn.004096c0
mov esi, dword [ebp - 0xb08]
lea eax, [ebp - 0xb1c]
mov edi, dword [ebp - 0xb14]
push 0
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 - 0xb1c], ebx
je 0x4a31ef
push esi
call fcn.004741e6
pop ecx
xor esi, esi
lea ecx, [ebp - 0xb28]
call fcn.0047920e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x800]
call fcn.0047920e
test esi, esi
jne 0x4a3214
xor eax, eax
jmp 0x4a3579
and dword [ebp - 0xb2c], 0
call fcn.00402160
push 0x1c
call fcn.00474152
pop ecx
mov dword [ebp - 0xb30], eax
mov dword [ebp - 4], 0xb
test eax, eax
je 0x4a324a
mov ecx, eax
call fcn.00481410
mov edi, eax
mov dword [ebp - 0xb14], eax
jmp 0x4a3252
xor edi, edi
mov dword [ebp - 0xb14], edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb44]
push 4
push eax
lea eax, [ebp - 0xb2c]
push eax
push ebx
push esi
call fcn.004c7e49
mov ebx, eax
push esi
mov dword [ebp - 0xb30], ebx
call fcn.004741e6
and dword [ebp - 0xb18], 0
add esp, 0x18
cmp dword [ebp - 0xb2c], 0
jle 0x4a3570
lea eax, [ebx + 8]
mov dword [ebp - 0xb10], eax
mov ebx, dword [eax - 8]
mov esi, dword [eax - 4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb3c], esi
mov dword [ebp - 0xb1c], ecx
mov dword [ebp - 0xb40], eax
test ebx, ebx
jne 0x4a32c8
push ebx
call fcn.004cbd53
pop ecx
jmp 0x4a3542
push 0x2c
lea eax, [ebp - 0x850]
push 0
push eax
call fcn.004f0ae0
mov eax, dword [ebp - 0xb1c]
add esp, 0xc
mov edi, dword [ebp - 0xb1c]
neg eax
mov dword [ebp - 0x848], eax
xor edx, edx
xor eax, eax
imul edi, esi
inc eax
mov dword [ebp - 0x850], 0x28
push 0x20
mov word [ebp - 0x844], ax
pop eax
mov word [ebp - 0x842], ax
mov eax, edi
push edx
shl eax, 2
push edx
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0xb08]
push eax
push edx
lea eax, [ebp - 0x850]
mov dword [ebp - 0x84c], esi
push eax
push edx
mov dword [ebp - 0x840], edx
mov byte [ebp - 0xb09], dl
mov dword [ebp - 0xb08], edx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0xb38], eax
test eax, eax
jne 0x4a3369
push ebx
call fcn.004cbd53
mov edi, dword [ebp - 0xb14]
pop ecx
jmp 0x4a3542
call fcn.0047f7a6
xor edx, edx
mov esi, edx
test edi, edi
jle 0x4a345e
xor eax, eax
inc eax
mov byte [ebp - 0xb09], al
mov eax, dword [ebp - 0xb08]
mov cl, byte [ebx + esi*4 + 3]
mov byte [eax + esi*4 + 3], cl
mov eax, 0xff
mov ecx, dword [ebp - 0xb08]
cmp byte [ecx + esi*4 + 3], al
jae 0x4a3404
movzx ecx, byte [ebx + esi*4 + 3]
xor edx, edx
movzx eax, byte [ebx + esi*4 + 2]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0xb08]
xor edx, edx
mov byte [ecx + esi*4], al
movzx ecx, byte [ebx + esi*4 + 3]
movzx eax, byte [ebx + esi*4 + 1]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0xb08]
xor edx, edx
mov byte [ecx + esi*4 + 1], al
movzx ecx, byte [ebx + esi*4 + 3]
movzx eax, byte [ebx + esi*4]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0xb08]
xor edx, edx
mov byte [ecx + esi*4 + 2], al
jmp 0x4a3426
mov al, byte [ebx + esi*4 + 2]
mov byte [ecx + esi*4], al
mov eax, dword [ebp - 0xb08]
mov cl, byte [ebx + esi*4 + 1]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0xb08]
mov cl, byte [ebx + esi*4]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0xb08]
mov ecx, dword [ebp + 0x10]
cmp dword [eax + esi*4], ecx
jne 0x4a3455
mov byte [eax + esi*4], dl
mov eax, dword [ebp - 0xb08]
mov byte [eax + esi*4 + 1], dl
mov eax, dword [ebp - 0xb08]
mov byte [eax + esi*4 + 2], dl
mov eax, dword [ebp - 0xb08]
mov byte [eax + esi*4 + 3], dl
inc esi
cmp esi, edi
jl 0x4a3383
mov dword [ebp - 0x800], edx
mov dword [ebp - 0x7fc], edx
mov dword [ebp - 0x7f8], edx
push 0x4a
pop ecx
mov esi, str.kf6VidCBJtMenNupKdF2ZXzwUxATz3ToyVkRqem7YfKNipXX8lcA3tA62S9GVFZcHDr2FJJNEkjHrB5mExNozqkEEU8leCHGgKlDBQot3DypNggPLysPDJpo4bzTS3yXB4a9Y5JnEzJbCxO6dl32YLd1XvdEdkIebTSEJZEug6POdiNAgcict3I9QQFx1wuf7c3dO7j6MAVbboiKXfxt8UV3ias16SDBIqpFEUwq47lifzQkMdtgbKip5bIZaEr7OfNiHbzJIpymt3UmVPMQBMLpwZlSzZVIGUZLE4XZWt
mov dword [ebp - 4], 0xc
lea edi, [ebp - 0x13c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x824]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.004057d0
lea eax, [ebp - 0x824]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x800]
call fcn.00408170
xor eax, eax
mov byte [ebp - 4], 0xc
push 0
inc eax
lea ecx, [ebp - 0x824]
push eax
call fcn.004096c0
push 0x9c
call fcn.00474152
mov esi, eax
pop ecx
mov dword [ebp - 0xb48], esi
mov byte [ebp - 4], 0xe
test esi, esi
je 0x4a34ec
lea ecx, [esi + 0x14]
call fcn.00480710
jmp 0x4a34ee
xor esi, esi
mov eax, dword [ebp - 0xb38]
mov ecx, dword [ebp - 0xb1c]
mov edi, dword [ebp - 0xb14]
mov dword [esi], eax
mov eax, dword [ebp - 0xb3c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xb40]
mov dword [esi + 0xc], eax
mov al, byte [ebp - 0xb09]
mov dword [esi + 8], ecx
mov ecx, edi
push esi
mov byte [ebp - 4], 0xc
mov byte [esi + 0x10], al
call fcn.00481efd
push ebx
call fcn.004cbd53
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x800]
call fcn.0047920e
mov ecx, dword [ebp - 0xb18]
mov eax, dword [ebp - 0xb10]
inc ecx
add eax, 0x10
mov dword [ebp - 0xb18], ecx
mov dword [ebp - 0xb10], eax
cmp ecx, dword [ebp - 0xb2c]
jl 0x4a329b
mov ebx, dword [ebp - 0xb30]
push ebx
call fcn.004cbd53
pop ecx
mov eax, edi
call fcn.00513e4b
ret