Function at 0x49c5c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50180b
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x5466b0]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
inc edi
mov dword [esp + 0x28], ecx
cmp eax, edi
jne 0x49c812
push 0x54cfe0
push 0x10
call fcn.004cba2a
xor esi, esi
pop ecx
pop ecx
cmp eax, esi
je 0x49c646
mov dword [eax], vtable.varstream.0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [esp + 0x1c], eax
jmp 0x49c64a
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x1c], esi
je 0x49c7e7
cmp ebx, esi
je 0x49c7e7
cmp dword [ebp + 0x10], 2
jbe 0x49c7e7
mov eax, dword [ebx + 4]
cmp dword [eax], edi
jne 0x49c672
mov eax, dword [eax + 8]
jmp 0x49c674
xor eax, eax
push 0x21
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [esp + 0x20], eax
cmp eax, esi
je 0x49c7e7
cmp dword [ebp + 0x10], 3
mov dword [esp + 0x14], 0x804
jbe 0x49c6a7
mov ecx, dword [ebx + 0x28]
call fcn.0040c5b0
movzx eax, ax
mov dword [esp + 0x14], eax
mov ecx, dword [ebx + 0x1c]
cmp dword [ecx], edi
je 0x49c7db
call fcn.0040c5b0
cmp eax, edi
jne 0x49c6c3
cmp edx, esi
je 0x49c7db
cmp eax, 3
jne 0x49c6cc
cmp edx, esi
je 0x49c736
cmp eax, 6
jne 0x49c6d5
cmp edx, esi
je 0x49c6f4
mov ecx, dword [ebx + 0x1c]
call fcn.0040c5b0
mov ecx, dword [ebx + 0x10]
cmp dword [ecx], 1
movzx edi, ax
jne 0x49c788
mov ecx, dword [ecx + 8]
jmp 0x49c790
mov esi, 0x400
push esi
lea eax, [esp + 0x30]
push 0
push eax
call fcn.004d7710
mov ecx, dword [ebx + 0x10]
add esp, 0xc
push esi
lea eax, [esp + 0x30]
push eax
call fcn.0040c5b0
push eax
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jle 0x49c7db
lea ecx, [esp + 0x2c]
push ecx
mov edi, eax
jmp 0x49c7d2
mov ecx, dword [ebx + 0x10]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
call fcn.0040c5b0
push eax
push dword [esp + 0x2c]
call fcn.0049bf0a
add esp, 0x10
test eax, eax
je 0x49c7db
cmp dword [esp + 0x18], esi
je 0x49c7db
mov edi, dword [esp + 0x14]
test edi, edi
jbe 0x49c7db
push dword [esp + 0x18]
mov eax, dword [esp + 0x20]
call fcn.0047a901
push dword [esp + 0x18]
call fcn.004cc1ec
pop ecx
jmp 0x49c7db
call fcn.0040c5b0
movzx ecx, ax
push dword [esp + 0x14]
push ecx
push edi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
je 0x49c7db
push esi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jbe 0x49c7db
push esi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49c7db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x49c7db
push eax
mov eax, dword [esp + 0x20]
call fcn.0047a901
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
cmp eax, esi
je 0x49c80b
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov dword [eax], 6
jmp 0x49caa0
xor eax, eax
jmp 0x49caa0
cmp eax, 2
jne 0x49c956
and dword [esp + 0x14], 0
test ebx, ebx
je 0x49c923
cmp dword [ebp + 0x10], 4
jb 0x49c923
cmp dword [ebp + 0x10], 5
mov dword [esp + 0x18], 0x804
jb 0x49c84f
mov ecx, dword [ebx + 0x34]
call fcn.0040c5b0
movzx eax, ax
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 4]
cmp dword [eax], 6
jne 0x49c923
mov esi, dword [eax + 8]
test esi, esi
je 0x49c923
mov ecx, dword [ebx + 0x28]
xor edi, edi
inc edi
cmp dword [ecx], edi
jne 0x49c875
mov eax, dword [ecx + 8]
jmp 0x49c8be
call fcn.0040c5b0
cmp eax, 3
jne 0x49c8b3
test edx, edx
jne 0x49c8b3
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x1c]
cmp dword [eax], edi
jne 0x49c892
mov edi, dword [eax + 8]
jmp 0x49c894
xor edi, edi
push dword [esp + 0x18]
mov esi, dword [esi + 4]
call fcn.0040c5b0
push eax
push edi
call fcn.0049c1d9
movzx eax, al
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x49c923
mov ecx, dword [ebx + 0x28]
call fcn.0040c5b0
movzx eax, ax
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x20], eax
cmp dword [ecx], edi
jne 0x49c8ce
mov eax, dword [ecx + 8]
jmp 0x49c8d6
call fcn.0040c5b0
movzx eax, ax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x10]
cmp dword [eax], edi
jne 0x49c8e6
mov eax, dword [eax + 8]
jmp 0x49c8e8
xor eax, eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edi, eax
test edi, edi
je 0x49c923
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push eax
push ecx
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov dword [esp + 0x14], eax
test eax, eax
je 0x49c923
push 0
push edi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x18], ecx
xor eax, eax
mov dword [esp + 0x440], eax
cmp ecx, eax
je 0x49ca98
mov eax, dword [esp + 0x14]
call fcn.0040c000
jmp 0x49ca98
cmp eax, 3
jne 0x49ca2a
xor esi, esi
xor edi, edi
cmp ebx, esi
je 0x49ca00
cmp dword [ebp + 0x10], 4
jb 0x49ca00
cmp dword [ebp + 0x10], 5
mov dword [esp + 0x14], 0x804
jb 0x49c992
mov ecx, dword [ebx + 0x34]
call fcn.0040c5b0
movzx eax, ax
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
cmp dword [eax], 1
mov ecx, dword [ebx + 0x28]
jne 0x49c9a6
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
jmp 0x49c9aa
mov dword [esp + 0x18], esi
mov eax, dword [ebx + 4]
cmp dword [eax], 1
mov edi, dword [ebx + 0x10]
jne 0x49c9b8
mov esi, dword [eax + 8]
call fcn.0040c5b0
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.0040c5b0
push 0x21
xor edi, edi
push edi
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x49ca00
push dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call fcn.0049c325
add esp, 0x10
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x440], 1
test ecx, ecx
je 0x49ca96
mov eax, edi
jmp 0x49c94c
cmp eax, 4
jne 0x49caaa
xor edi, edi
cmp ebx, edi
je 0x49ca6a
cmp dword [ebp + 0x10], 1
jb 0x49ca6a
mov eax, dword [ebx + 4]
cmp dword [eax], 1
jne 0x49ca48
mov eax, dword [eax + 8]
jmp 0x49ca4a
xor eax, eax
push 0x21
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x49ca6a
push esi
call fcn.0049c4e8
pop ecx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x440], 2
test ecx, ecx
je 0x49ca96
mov eax, edi
call fcn.0041a730
jmp 0x49ca98
xor eax, eax
or dword [esp + 0x440], 0xffffffff
mov ecx, dword [esp + 0x24]
push eax
call fcn.0040ed50
push dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.0046626b
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.004cb38b
mov esp, ebp
pop ebp
ret 0x10