Function at 0x49c944
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x90], ebx
test dl, dl
je 0x49c964
add esp, 0xfffffff0
call fcn.00403220
mov esi, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
lea ebx, [ebp - 4]
xor eax, eax
push ebp
push 0x49cd81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx]
mov edx, dword [ebp + 0x20]
mov dword [eax + 0x1c], edx
mov eax, dword [ebx]
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0x24], edx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x20], edx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebx]
mov byte [eax + 0x29], 0
mov eax, dword [ebx]
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x18], edx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebx]
mov dl, byte [ebp + 0x14]
mov byte [eax + 0x48], dl
mov eax, dword [ebx]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x4c], edx
mov eax, dword [ebx]
mov dl, byte [ebp + 8]
mov byte [eax + 0x54], dl
mov eax, dword [ebx]
mov byte [eax + 0x4069], 0
mov eax, dword [ebx]
cmp dword [eax + 0x4c], 0
je 0x49c9f3
mov eax, dword [ebx]
cmp byte [eax + 0x54], 0
jne 0x49c9f3
mov eax, dword [ebx]
mov dword [eax + 0x58], 4
jmp 0x49c9fc
mov eax, dword [ebx]
mov dword [eax + 0x58], 1
mov eax, dword [ebx]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x50], edx
xor eax, eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x90]
mov eax, esi
call fcn.00408f68
mov edx, dword [ebp - 0x90]
mov eax, 0x49cdb4
call fcn.004040d8
test eax, eax
jle 0x49cb00
push 0x49cdc0
lea eax, [ebp - 0x90]
push eax
mov eax, esi
call fcn.00403df0
mov ecx, eax
mov edx, 0xc
mov eax, esi
call fcn.00403ff4
mov eax, dword [ebp - 0x90]
call fcn.00403fb4
push eax
push 0
call sub.kernel32.dll_FindResourceA
mov edi, eax
mov eax, dword [ebx]
mov dword [eax + 4], edi
test edi, edi
jne 0x49ca83
mov ecx, 0x49cdcc
mov dl, 1
mov eax, dword [0x408380]
call fcn.0040cb8c
call fcn.004035cc
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push eax
push 0
call sub.kernel32.dll_SizeofResource
mov edx, dword [ebx]
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push eax
push 0
call sub.kernel32.dll_LoadResource
mov esi, eax
mov eax, dword [ebx]
mov dword [eax + 4], esi
test esi, esi
jne 0x49cac3
mov ecx, 0x49cde8
mov dl, 1
mov eax, dword [0x408380]
call fcn.0040cb8c
call fcn.004035cc
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_LockResource
mov esi, eax
mov eax, dword [ebx]
mov dword [eax + 0xc], esi
test esi, esi
jne 0x49caef
mov ecx, 0x49ce08
mov dl, 1
mov eax, dword [0x408380]
call fcn.0040cb8c
call fcn.004035cc
mov eax, dword [ebx]
mov byte [eax + 0x29], 1
mov eax, dword [ebx]
mov byte [eax + 0x28], 1
jmp 0x49ccce
lea edx, [ebp - 0x90]
mov eax, esi
call fcn.00408f68
mov edx, dword [ebp - 0x90]
mov eax, 0x49ce28
call fcn.004040d8
test eax, eax
jle 0x49cb77
lea ecx, [ebp - 0x90]
mov dl, 0x2f
mov eax, esi
call fcn.0045cd6c
mov eax, dword [ebp - 0x90]
call fcn.0045cff0
mov edi, eax
mov eax, dword [ebx]
mov dword [eax + 0xc], edi
mov eax, edi
call fcn.0045e9fc
mov edx, dword [ebx]
mov dword [edx + 0x24], eax
push ebp
lea edx, [ebp - 0xc]
mov al, 1
call fcn.0049c784
pop ecx
test al, al
jne 0x49cb4e
mov eax, dword [ebx]
mov eax, dword [eax + 0x14]
test eax, eax
jle 0x49cb6c
mov edx, dword [ebx]
add dword [edx + 0x20], eax
mov eax, dword [ebx]
mov byte [eax + 0x28], 1
jmp 0x49ccce
mov eax, dword [ebx]
mov byte [eax + 0x29], 0
mov dword [ebp - 0x1c], 0xc
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 3
lea eax, [ebp - 0x1c]
push eax
push 3
push 0x80000000
mov eax, esi
call fcn.00403fb4
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
mov eax, dword [ebx]
mov dword [eax + 4], edi
cmp edi, 0xffffffff
jne 0x49cbea
push 0x49ce3c
push esi
push 0x49ce54
lea eax, [ebp - 0x90]
mov edx, 3
call fcn.00403eb0
mov ecx, dword [ebp - 0x90]
mov dl, 1
mov eax, dword [0x408380]
call fcn.0040cb8c
call fcn.004035cc
mov eax, dword [ebx]
cmp dword [eax + 0x24], 0
jg 0x49cc04
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edx, dword [ebx]
mov dword [edx + 0x24], eax
push ebp
lea edx, [ebp - 0xc]
mov eax, dword [ebx]
mov al, byte [eax + 0x28]
call fcn.0049c784
pop ecx
test al, al
jne 0x49cc04
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c]
test eax, eax
jle 0x49cc25
mov edx, dword [ebx]
add dword [edx + 0x20], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x14]
test eax, eax
jle 0x49cc33
mov edx, dword [ebx]
add dword [edx + 0x20], eax
cmp byte [0x509858], 0
je 0x49cc4f
mov eax, dword [ebx]
cmp dword [eax + 0x1c], 0
jg 0x49cc4f
mov eax, esi
call fcn.0049c8c0
test al, al
je 0x49cc53
xor eax, eax
jmp 0x49cc55
mov al, 1
mov edx, dword [ebx]
mov byte [edx + 0x28], al
mov eax, dword [ebx]
cmp byte [eax + 0x28], 0
je 0x49ccce
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
push eax
push 0
push 2
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
mov eax, dword [ebx]
mov dword [eax + 8], esi
test esi, esi
jne 0x49cc8c
mov eax, dword [ebx]
mov byte [eax + 0x28], 0
mov eax, dword [ebx]
cmp byte [eax + 0x28], 0
je 0x49ccce
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
push eax
push 0
push 0
push 4
mov eax, dword [ebx]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
mov eax, dword [ebx]
mov dword [eax + 0xc], esi
test esi, esi
jne 0x49ccc7
mov eax, dword [ebx]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx]
mov byte [eax + 0x28], 0
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x405c], edx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x4060], edx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x4064], edx
lea eax, [ebp - 0x10]
push eax
push 1
push 1
lea edx, [ebp - 0x8c]
mov ecx, 0x70
mov eax, dword [ebx]
call fcn.0049cfec
test eax, eax
je 0x49cd3a
cmp byte [ebp - 0x8c], 0x4d
jne 0x49cd2a
cmp byte [ebp - 0x8b], 0x5a
jne 0x49cd2a
mov al, byte [ebp - 0x8a]
cmp al, 0x50
je 0x49cd3a
cmp al, 0xc9
je 0x49cd3a
cmp byte [ebp - 0x20], 0x44
jne 0x49cd3a
cmp byte [ebp - 0x1f], 0x4f
jne 0x49cd3a
cmp byte [ebp - 0x1e], 0x53
push 0
mov eax, dword [ebx]
mov edx, dword [eax + 0x20]
xor ecx, ecx
mov eax, dword [ebx]
call fcn.0049d2a4
mov eax, dword [ebx]
add eax, 0x406c
mov edx, dword [ebx]
mov dword [edx + 0x30], eax
mov eax, dword [ebx]
mov dword [eax + 0x40], 0xffffffff
mov eax, dword [ebx]
mov dword [eax + 0x44], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49cd88
lea eax, [ebp - 0x90]
call fcn.00403b74
ret