Function at 0x4f9670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514bad
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.004282c0
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x53ba00
push 0x83
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4f9a6c
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f9a6c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4f9a6c
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, esi
mov edi, eax
call fcn.004bf3b0
test eax, eax
je 0x4f9718
mov eax, dword [esi + 0x14]
inc eax
push eax
call fcn.004276a9
mov ebx, eax
add esp, 4
mov edx, esi
mov dword [ebp - 0x1020], ebx
mov ecx, ebx
call fcn.004bf3f0
mov edi, eax
jmp 0x4f9734
lea eax, [edi + 1]
push eax
call fcn.004276a9
push edi
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x1020], ebx
call fcn.00432810
add esp, 0x10
mov byte [ebx + edi], 0
call fcn.004f9420
push 0x10
call fcn.0042766b
push 0x18
mov dword [0x5b5070], eax
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0042766b
add esp, 8
mov dword [ebp - 0x1024], eax
mov dword [ebp - 4], 0
mov ecx, eax
push 0
call fcn.004a8ec0
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [0x5b5070]
mov esi, dword [ebp - 0x1020]
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0
call fcn.004f5da0
add esp, 4
mov edx, eax
cmp byte [esi], 0
mov edi, esi
mov dword [ebp - 0x1018], edx
je 0x4f9a55
nop
mov al, byte [edi]
cmp al, 0x20
je 0x4f97c2
cmp al, 9
je 0x4f97c2
cmp al, 0xd
je 0x4f97c2
cmp al, 0xa
jne 0x4f97c5
inc edi
jmp 0x4f97b0
mov cl, byte [edi]
test al, al
je 0x4f9a4f
cmp al, 0x2f
jne 0x4f9817
cmp byte [edi + 1], al
jne 0x4f9817
mov al, byte [edi + 2]
add edi, 2
cmp al, 0xd
je 0x4f9a46
cmp al, 0xa
je 0x4f9a46
test al, al
je 0x4f9a4f
push edx
push edi
xor edx, edx
xor ecx, ecx
call fcn.004f5ab0
mov edx, dword [ebp - 0x1018]
add edi, eax
add esp, 8
mov al, byte [edi]
cmp al, 0xd
jne 0x4f97e6
jmp 0x4f9a40
mov dword [ebp - 0x101c], 0
cmp al, 0x40
jne 0x4f9833
mov cl, byte [edi + 1]
inc edi
mov dword [ebp - 0x101c], 1
mov dword [ebp - 0x1024], edi
cmp cl, 0x20
je 0x4f986d
nop
cmp cl, 9
je 0x4f986d
cmp cl, 0x3d
je 0x4f986d
cmp cl, 0x2c
je 0x4f986d
push edx
push edi
xor edx, edx
xor ecx, ecx
call fcn.004f5ab0
mov cl, byte [edi + eax]
add edi, eax
mov edx, dword [ebp - 0x1018]
add esp, 8
cmp cl, 0x20
jne 0x4f9840
mov byte [edi], 0
mov al, byte [edi + 1]
inc edi
cmp al, 0x20
je 0x4f9870
cmp al, 9
je 0x4f9870
cmp al, 0x3d
je 0x4f9870
cmp al, 0x2c
je 0x4f9870
mov dword [ebp - 0x1014], edi
mov esi, edi
cmp al, 0xd
je 0x4f98ba
cmp al, 0xa
je 0x4f98ba
test al, al
je 0x4f98c8
push edx
push edi
xor edx, edx
xor ecx, ecx
call fcn.004f5ab0
mov edx, dword [ebp - 0x1018]
add edi, eax
add esp, 8
mov dword [ebp - 0x1014], edi
mov al, byte [edi]
cmp al, 0xd
jne 0x4f9890
test al, al
je 0x4f98c8
mov byte [edi], 0
inc edi
mov dword [ebp - 0x1014], edi
cmp dword [ebp - 0x101c], 0
je 0x4f9a22
mov ebx, dword [ebp - 0x1024]
push ebx
call fcn.004f5f10
push str.languageid
push ebx
call fcn.004f5ed0
add esp, 0xc
test eax, eax
jne 0x4f9a32
xor ebx, ebx
mov dword [ebp - 0x101c], ebx
cmp byte [esi], bl
je 0x4f995f
mov edi, ebx
push 0xffffffffffffffff
mov edx, 0x2c
mov ecx, esi
call fcn.004f58d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4f991f
mov byte [ebx], 0
push 0x10
push 0
push esi
call fcn.0043a6bd
mov dword [ebp + edi*4 - 0x1010], eax
add esp, 0xc
inc edi
test ebx, ebx
je 0x4f994d
lea esi, [ebx + 1]
nop dword [eax + eax]
mov al, byte [esi]
cmp al, 0x20
je 0x4f994a
cmp al, 9
jne 0x4f9905
inc esi
jmp 0x4f9940
mov dword [ebp - 0x101c], edi
mov edi, dword [ebp - 0x1014]
mov ebx, dword [ebp - 0x101c]
mov esi, dword [0x5b5070]
push 0
push ecx
push 0
push ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x1014], esi
call fcn.004a8c20
test eax, eax
jne 0x4f99d1
push 0x10
call fcn.0042766b
mov esi, eax
push 0x18
mov dword [ebp - 0x1014], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042766b
add esp, 8
mov dword [ebp - 0x1028], eax
mov dword [ebp - 4], 1
mov ecx, eax
push 0
call fcn.004a8ec0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 8], eax
mov eax, dword [0x5b5070]
mov dword [esi + 0xc], eax
mov dword [0x5b5070], esi
cmp ebx, 1
jb 0x4f9a3a
jne 0x4f99e1
cmp dword [ebp - 0x1010], 0
je 0x4f9a3a
xor ecx, ecx
mov dword [esi], ebx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004276a9
mov esi, dword [0x5b5070]
mov ecx, eax
lea eax, [ebx*4]
push eax
lea eax, [ebp - 0x1010]
push eax
push ecx
mov dword [esi + 4], ecx
call fcn.00432810
add esp, 0x10
mov ebx, esi
jmp 0x4f9a40
push ecx
mov ecx, dword [ebx + 8]
push esi
push dword [ebp - 0x1024]
call fcn.004a8d80
mov ebx, dword [0x5b5070]
jmp 0x4f9a40
mov ebx, dword [ebp - 0x1014]
mov edx, dword [ebp - 0x1018]
cmp byte [edi], 0
jne 0x4f97b0
mov esi, dword [ebp - 0x1020]
push esi
call fcn.00427666
add esp, 4
xor ecx, ecx
call fcn.004f9640
mov eax, 1
jmp 0x4f9a6e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret