Function at 0x4b9440
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
cmp esi, reloc.MSVCRT.dll_strncpy
jne 0x4b9467
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xe0]
push ecx
push eax
call fcn.004d6aa0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
call fcn.004079d0
mov ebx, 0x20000000
mov edi, eax
test ebx, esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], edi
je 0x4b9674
mov edx, dword [esi + 0xa4]
and edx, 0xdfffffff
or edx, 0x400000
push esi
mov dword [esi + 0xa4], edx
call fcn.00553d80
add esp, 4
test dword [esi], reloc.MSVCRT.dll_strncpy
je 0x4b94be
mov eax, dword [esi + 0xbc]
mov dword [esi + reloc.MSVCRT.dll_strncpy], eax
mov dword [esi + reloc.MSVCRT.dll_strncpy], eax
cmp dword [esi + 0xbc], 0
je 0x4b94d1
mov dword [esi + 0xbc], 0
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x4b94f1
push eax
call fcn.004a3420
mov dword [esi + 0xc8], eax
add esp, 4
mov word [esi + 0xca], ax
or dword [esi], reloc.MSVCRT.dll_strncpy
mov ecx, dword [esi + 0xa4]
mov eax, dword [esi]
mov dword [esi + 0x28], 0x10
test ecx, 0x1000
je 0x4b951a
or dword [esi + 0xe0], reloc.MSVCRT.dll_strncpy
jmp 0x4b952c
test ecx, 0x800
je 0x4b952c
or dword [esi + 0xe0], reloc.MSVCRT.dll_strncpy
mov ecx, dword [esi + 0xcc]
mov edx, dword [esi + 0xd0]
mov dword [esi + 0xd8], ecx
mov ecx, dword [esi + 0xb0]
mov dword [esi + 0xcc], ecx
dec ecx
mov dword [esi + 0xdc], edx
je 0x4b95f1
dec ecx
je 0x4b9575
sub ecx, 2
jne 0x4b964d
or eax, 0x4000000
mov dword [esi], eax
mov dword [esi + 0xe0], ebx
jmp 0x4b964d
mov ecx, dword [esi + 0xb8]
or eax, 0x4000000
mov dword [esi], eax
mov eax, dword [esi + 0xb4]
mov dword [esi + 0xe0], ebx
cmp eax, ecx
jg 0x4b959c
push ecx
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ecx
push eax
jmp 0x4b95a4
push eax
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], eax
push ecx
call fcn.005366a0
add esp, 8
cmp dword [esi + 0xc4], 0
mov dword [esi + 0x6c], eax
je 0x4b95c5
call fcn.00536540
and eax, 1
mov dword [esi + 0x68], eax
jmp 0x4b95d2
mov eax, dword [esi + 0x70]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], 0
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xbc]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
test eax, eax
jne 0x4b964d
mov dword [esi + 0x64], reloc.MSVCRT.dll_strncpy
jmp 0x4b964d
mov edx, dword [edi + reloc.MSVCRT.dll_strncpy]
xor eax, eax
mov dword [esi + 0xdc], eax
mov dword [esi + 0xd8], eax
lea eax, [ebp - 4]
push eax
push edx
mov dword [esi + 0xd0], edx
call fcn.004b3b50
add esp, 8
test eax, eax
je 0x4b9646
mov dx, word [esi + 0x9e]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x50], eax
mov ax, word [esi + 0xa2]
mov word [esi + 0x9c], dx
mov word [esi + 0xa0], ax
mov dword [esi + 0xd8], ecx
jmp 0x4b964d
mov dword [esi + 0x50], reloc.MSVCRT.dll_strncpy
mov eax, dword [esi + 0xa4]
test eax, 0x2000
je 0x4b9669
and eax, 0xffffdfff
mov dword [esi + 0xa4], eax
push 1
jmp 0x4b966b
push 0
push esi
call fcn.004d69e0
add esp, 8
mov eax, dword [esi + reloc.MSVCRT.dll_strncpy]
mov edx, dword [esi + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [esi + reloc.MSVCRT.dll_strncpy]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x94]
sub eax, dword [esi + 0x8c]
mov dword [ebp + 0xc], edx
mov dword [ebp - 0x14], eax
call fcn.004a3680
mov edi, eax
call fcn.004a3690
test dword [esi + 0xe0], 0x40000000
je 0x4b970d
sub eax, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, 0x6a4
jle 0x4b96c7
mov ecx, dword [0x5dfa24]
jmp 0x4b96d4
cmp eax, 0x4b0
jle 0x4b96d4
mov ecx, dword [0x5dfa28]
mov eax, edi
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
mov edx, 0xfffff830
sub edx, dword [0x5dfa2c]
sub edx, ecx
add eax, edx
cmp eax, 0x100
jle 0x4b970d
or dword [esi + 0xa4], reloc.MSVCRT.dll_strncpy
push esi
call fcn.004d8ba0
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xcc]
xor edi, edi
mov edx, 1
sub eax, edx
mov dword [ebp - 8], edi
je 0x4b976a
sub eax, edx
jne 0x4b97fa
mov ecx, dword [esi + 0x68]
mov dword [ebp - 8], edx
cmp ecx, edi
jne 0x4b974d
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x74]
cmp eax, ecx
jl 0x4b9762
mov eax, ecx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], eax
jmp 0x4b97fa
mov eax, dword [esi + 0x6c]
sub eax, dword [esi + 0x64]
mov edx, dword [esi + 0x70]
cmp eax, edx
jg 0x4b9762
xor ecx, 1
mov eax, edx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], eax
jmp 0x4b97fa
push 0x2000
call fcn.00420f70
add esp, 4
test eax, eax
jne 0x4b97fa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + reloc.MSVCRT.dll_strncpy]
cmp dword [esi + 0xd0], eax
je 0x4b97fa
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [esi + 0xd0], eax
mov dword [esi + 0xdc], edi
mov dword [esi + 0xd8], edi
call fcn.004b3b50
add esp, 8
cmp eax, edi
je 0x4b97d9
mov cx, word [esi + 0xa2]
mov edx, dword [ebp - 4]
mov dword [esi + 0x50], eax
mov ax, word [esi + 0x9e]
mov word [esi + 0x9c], ax
mov word [esi + 0xa0], cx
mov dword [esi + 0xd8], edx
jmp 0x4b97e0
mov dword [esi + 0x2c], reloc.MSVCRT.dll_strncpy
test dword [esi + 0xa4], reloc.MSVCRT.dll_strncpy
je 0x4b97f0
push 1
jmp 0x4b97f1
push edi
push esi
call fcn.004d69e0
add esp, 8
test dword [esi + 0xa4], reloc.MSVCRT.dll_strncpy
je 0x4b9814
mov edi, dword [esi + 0x20]
test edi, edi
jne 0x4b9828
mov edi, 0x10000
jmp 0x4b9828
mov eax, dword [ebp + 0xc]
push 0x6ba580
push eax
push ebx
call fcn.00555c80
add esp, 0xc
mov edi, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push 0x6ba580
lea ecx, [esi + 4]
push ecx
push edi
push edx
push eax
push ebx
call fcn.00555ca0
mov dword [esi + reloc.MSVCRT.dll_strncpy], eax
mov eax, dword [esi + reloc.MSVCRT.dll_strncpy]
add esp, 0x18
test eax, eax
je 0x4b985e
imul edi
shrd eax, edx, 0x10
sar edx, 0x10
mov edi, eax
cmp edi, 0xb000
jge 0x4b9869
and edi, 0xffffff80
mov ecx, dword [ebp + 0xc]
push ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
call fcn.004a5970
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc8]
add esp, 4
test eax, eax
je 0x4b98e5
jns 0x4b98bb
dec word [esi + 0xc8]
cmp word [esi + 0xc8], 0
jg 0x4b98ee
and dword [esi + 0xc8], reloc.MSVCRT.dll_strncpy
mov dx, word [esi + 0xca]
mov eax, dword [esi + 0x54]
mov word [esi + 0xc8], dx
mov dword [esi + 0x2c], eax
jmp 0x4b98ee
push esi
call fcn.004d8ba0
add esp, 4
test eax, eax
je 0x4b98ee
movzx ecx, word [esi + 0x9c]
mov edx, dword [esi + 0x54]
or dword [esi + 0xc8], 0x80000000
lea eax, [ecx + edx - 1]
mov dword [esi + 0x2c], eax
jmp 0x4b98ee
push esi
call fcn.004d8ba0
add esp, 4
mov ecx, dword [esi + 0x8c]
mov edi, dword [ebp - 0x14]
neg ecx
push ecx
push edi
push 1
push esi
call fcn.004b5030
add esp, 0x10
test eax, eax
jne 0x4b9a31
mov eax, dword [esi + 0xa4]
test eax, 0x10000000
jne 0x4b9a31
test eax, 0x4000
je 0x4b99e8
test eax, 0x800
jne 0x4b99e8
mov edx, dword [ebp + 0xc]
cmp edx, dword [0x68a7f4]
jle 0x4b99dc
call fcn.004a3680
add ebx, dword [esi + 0x8c]
cmp eax, ebx
jl 0x4b99dc
add edi, ebx
cmp eax, edi
jg 0x4b99dc
mov eax, 0xff
cmp word [esi + 0x16e], ax
jne 0x4b9976
mov cx, word [esi + 0x28]
mov word [esi + 0x16e], cx
mov eax, dword [esi + 0xa4]
or dword [esi], reloc.MSVCRT.dll_strncpy
test eax, 0x400
je 0x4b99ac
movzx ecx, word [esi + 0x16e]
test cx, cx
je 0x4b999f
dec ecx
mov word [esi + 0x16e], cx
jmp 0x4b99c0
or eax, 0x10000000
mov dword [esi + 0xa4], eax
jmp 0x4b99c0
movzx eax, word [esi + 0x16e]
cmp eax, 4
jbe 0x4b99c0
dec eax
mov word [esi + 0x16e], ax
mov dx, word [esi + 0x16e]
or dword [esi + 0xa4], 0x2000
pop edi
pop ebx
mov word [esi + 0x28], dx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xff
mov word [esi + 0x16e], ax
test dword [esi + 0xa4], reloc.MSVCRT.dll_strncpy
je 0x4b9a18
mov eax, dword [esi]
test eax, 0x20000000
je 0x4b9a18
inc word [esi + 0x28]
cmp word [esi + 0x28], 0x10
jl 0x4b9a18
mov ecx, 0x10
and eax, 0xdfffffff
mov word [esi + 0x28], cx
mov dword [esi], eax
cmp dword [ebp - 8], 0
je 0x4b9a31
mov edx, dword [esi + 0x6c]
mov eax, dword [ebp + 0xc]
push 2
push edx
push eax
push ebx
call fcn.0042adc0
add esp, 0x10
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret