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

Disassembly:
push ebp
sub esp, 0x3bc
lea ebp, [esp - 4]
mov eax, dword [0x630160]
xor eax, ebp
mov dword [ebp + 0x3bc], eax
push 0x20
mov eax, 0x5c4886
call fcn.0041d26d
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 0x3c8]
lea ecx, [ebp + 0x2b4]
mov dword [ebp - 0x20], edi
xor ebx, ebx
xor esi, esi
call fcn.00473200
lea ecx, [ebp + 0x230]
mov dword [ebp - 4], ebx
call fcn.00473200
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x230]
push eax
lea eax, [ebp + 0x2b4]
push eax
push edi
mov byte [ebp - 4], 1
call fcn.004a4628
lea ecx, [ebp + 0x230]
call fcn.0047334a
test al, al
jne 0x4a4b6a
lea ecx, [ebp + 0x2b4]
call fcn.0047334a
test al, al
jne 0x4a4b6a
lea ecx, [ebp + 0x2b4]
call fcn.004730dd
movzx eax, word [eax]
push eax
call fcn.0041a1c4
pop ecx
test eax, eax
je 0x4a4b6a
push 0xa
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x2b4]
mov dword [ebp - 0x14], ebx
call fcn.004730dd
push eax
call fcn.0041bd45
add esp, 0xc
push str.COLOR
lea ecx, [ebp + 0x230]
mov edi, eax
call fcn.004730dd
push eax
call fcn.004f23b4
pop ecx
pop ecx
test eax, eax
jne 0x4a4ad8
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x1c]
push esi
push edi
call fcn.004a4814
push edi
mov esi, eax
call fcn.0041960a
pop ecx
jmp 0x4a4d6c
push edi
lea ecx, [ebp - 0x2c]
call fcn.00472e27
lea ecx, [ebp + 0x230]
call fcn.004730dd
push eax
push dword [ebp - 0x2c]
call fcn.0046bda7
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
je 0x4a4d00
push esi
call fcn.0046bda7
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
push esi
cmp eax, ebx
jne 0x4a4b29
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4a4d00
call fcn.0046bda7
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x4a4d00
push esi
call fcn.0041884e
pop ecx
push esi
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.00422ff0
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4a4cf8
call fcn.0046bdb6
push eax
lea ecx, [ebp + 0x338]
call fcn.00473641
mov byte [ebp - 4], 2
call fcn.0046bdbc
mov ecx, eax
call fcn.0047334a
test al, al
je 0x4a4c22
push edi
lea ecx, [ebp + 0x338]
call fcn.004733da
push ebx
push 0x80
push 3
push ebx
push 1
push accept
lea ecx, [ebp + 0x338]
call fcn.004730dd
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4a4bdd
lea ecx, [ebp + 0x338]
mov byte [ebp - 4], 1
call fcn.00473225
jmp 0x4a4d00
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x4a4bc9
push esi
mov dword [ebp - 0x18], ebx
call fcn.0041884e
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
je 0x4a4ce9
push edi
call fcn.0041960a
pop ecx
jmp 0x4a4bc9
call fcn.0046bdbc
push eax
lea ecx, [ebp + 0x338]
call fcn.004733c0
call fcn.0046bdc2
test al, al
je 0x4a4c43
call fcn.0046bdc8
jmp 0x4a4c5a
push 2
push ebx
lea ecx, [ebp + 0x338]
call fcn.004730dd
push eax
call fcn.00489ff7
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x4a4bc9
lea eax, [ebp]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push edi
push dword [ebp - 0x10]
call fcn.004886f5
add esp, 0x14
test eax, eax
jne 0x4a4bc9
mov esi, dword [ebp + 0x22c]
cmp esi, ebx
je 0x4a4bc9
push esi
call fcn.0041884e
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.0048a054
add esp, 0x18
cmp eax, ebx
je 0x4a4cd7
cmp eax, 0x600
je 0x4a4cd7
push edi
call fcn.0041960a
pop ecx
call fcn.0046bdc2
test al, al
jne 0x4a4bc9
push dword [ebp - 0x10]
call fcn.0048a08e
jmp 0x4a4c1f
call fcn.0046bdc2
test al, al
jne 0x4a4ce9
push dword [ebp - 0x10]
call fcn.0048a08e
pop ecx
lea ecx, [ebp + 0x338]
mov byte [ebp - 4], 1
call fcn.00473225
cmp edi, ebx
jne 0x4a4ac0
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4a4d6a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x4a4d6a
push esi
mov dword [ebp - 0x14], ebx
call fcn.0041884e
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
je 0x4a4d62
push edi
call fcn.0041960a
pop ecx
xor edi, edi
cmp edi, ebx
jne 0x4a4ac0
xor esi, esi
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], bl
call fcn.00473225
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2b4]
call fcn.00473225
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3bc]
xor ecx, ebp
call fcn.00418878
add ebp, 0x3c0
leave
ret 4