Function at 0x4013f0
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x28
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0x28]
push esi
mov esi, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x40]
push eax
push edi
push ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], 0
call fcn.00401dd0
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x401a20
movzx ecx, word [eax]
lea eax, [ecx*8 + 0x662198]
movzx ecx, byte [eax]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov ebx, dword [ecx*4 + section..data]
test eax, eax
je 0x4014c5
mov eax, dword [edi]
mov ecx, eax
test eax, 0x2000
je 0x40148a
cmp dword [edi + 0x18], 1
jne 0x40148a
test byte [edi + 0x24], 8
je 0x40148a
cmp dword [edi + 0x1c], 0
jne 0x40148a
and ecx, 0xffffdfff
mov dword [edi], ecx
mov ax, word [edi + 0x14]
or word [edi + 0xc], ax
mov eax, dword [ebp + 0x14]
test ecx, 0x4000
je 0x4014b1
push ebx
push dword [edi + 0x24]
xor edx, edx
cmp eax, 1
push ecx
setne dl
push eax
mov dword [esp + 0x24], edx
call fcn.00401390
add esp, 0x10
jmp 0x4014e8
push ebx
push dword [edi + 0x24]
mov dword [esp + 0x1c], eax
push ecx
push eax
call fcn.00401390
add esp, 0x10
jmp 0x4014e8
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
cmp eax, 2
jne 0x4014ec
mov eax, ebx
and eax, 0x3000000
sub eax, 0x1000000
neg eax
sbb eax, eax
add eax, 2
mov dword [esp + 0x20], eax
push 0x40
push 0
push esi
call fcn.0059c4a0
add esp, 0xc
test bl, 1
je 0x40151d
test ebx, 0x40000000
jne 0x401513
inc dword [ebp + 0xc]
add dword [ebp + 0x10], 0xffffffff
js 0x401a20
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov dword [esp + 0x18], eax
inc dword [ebp + 0xc]
mov eax, dword [ebp + 4]
and eax, dword [ebp]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x10], eax
mov ax, word [edx + 2]
mov word [esi + 0x1c], ax
mov eax, dword [esp + 0x28]
movzx ecx, word [eax + 6]
mov eax, dword [esp + 0x14]
and ecx, 0x8000
and eax, 3
mov word [esi + 0x30], 0xffff
shl eax, 0xa
or eax, ecx
mov word [esi + 0x14], ax
mov eax, dword [esp + 0x28]
mov al, byte [eax + 2]
mov byte [esp + 0x1f], al
test al, al
je 0x4016bb
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0x1e]
mov dword [esp + 0x10], 1
test ebx, 0x10100000
je 0x4015a8
cmp ecx, 0xc0
jae 0x401597
test ebx, 0x100000
jne 0x401a20
test ebx, 0x10000000
je 0x4015a8
test cl, 0x38
jne 0x401a20
push eax
push dword [esp + 0x18]
movzx eax, byte [esp + 0x27]
push dword [esp + 0x28]
push edi
push ecx
push eax
push ebx
push edx
push esi
push ebp
call fcn.00402620
add esp, 0x28
lea ecx, [esi + 0x22]
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x401a20
mov eax, dword [esp + 0x28]
mov al, byte [eax + 1]
test al, al
je 0x40169c
push ecx
push dword [esp + 0x18]
movzx eax, al
push dword [esp + 0x28]
push edi
push dword [esp + 0x28]
push eax
push ebx
push dword [esp + 0x40]
push esi
push ebp
call fcn.00402620
mov ecx, dword [esp + 0x54]
add esp, 0x28
add ecx, 4
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x401a20
mov dword [esp + 0x10], 2
test ebx, 0x20000
je 0x40169c
push ecx
push dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x28]
push edi
push dword [esp + 0x28]
movzx eax, byte [ecx + 5]
push eax
push ebx
push ecx
push esi
push ebp
call fcn.00402620
add esp, 0x28
test eax, eax
je 0x401a20
mov dword [esp + 0x10], 3
test ebx, 0x40000
je 0x40169c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add eax, 4
push eax
push dword [esp + 0x18]
push dword [esp + 0x28]
movzx eax, byte [ecx + 6]
push edi
push dword [esp + 0x28]
push eax
push ebx
push ecx
push esi
push ebp
call fcn.00402620
add esp, 0x28
test eax, eax
je 0x401a20
mov dword [esp + 0x10], 4
mov edx, dword [esp + 0x24]
mov eax, ebx
shr eax, 0x19
and eax, 0x40
or word [esi + 0x14], ax
mov eax, dword [esp + 0x10]
add byte [esi + 0x2e], al
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
test ebx, 0x8e0c060
je 0x401842
test edi, edi
je 0x4016dd
test ebx, 0x8000
je 0x4016dd
mov eax, dword [edi]
and eax, 0x2000
or dword [edi + 4], eax
cmp dword [ebp + 0x14], 2
je 0x4016eb
test ebx, 0x8000000
jmp 0x4016f1
test ebx, 0x800000
jne 0x401a20
test ebx, 0x200000
je 0x40173c
push ebp
call fcn.00402310
mov edx, eax
add esp, 4
test edx, edx
je 0x401a20
movzx eax, word [edx]
lea eax, [eax*8 + 0x662198]
mov dword [esp + 0x28], eax
movzx eax, byte [eax]
mov ebx, dword [eax*4 + section..data]
mov ax, word [edx + 2]
mov word [esi + 0x1c], ax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
jmp 0x401740
mov eax, dword [esp + 0x10]
test ebx, 0x400000
je 0x4017a6
add dword [ebp + 0x10], 0xffffffff
js 0x401a20
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
inc eax
mov dword [ebp + 0xc], eax
test ebx, 0x20000000
je 0x401785
cmp ecx, 0x20
jae 0x401a20
mov ax, word [ecx*2 + 0x668268]
add ax, word [edx + 2]
movzx eax, ax
mov word [esi + 0x1c], ax
jmp 0x4018f0
cmp ecx, 8
jae 0x401a20
mov ax, word [ecx*2 + 0x668254]
add ax, word [edx + 2]
movzx eax, ax
mov word [esi + 0x1c], ax
jmp 0x4018f0
test eax, eax
je 0x4017d7
test bl, 0x60
je 0x4017d7
test bl, 0x20
je 0x4017c4
test byte [edi], 0x20
je 0x4017c4
or dword [edi + 4], 0x20
or word [esi + 0x14], 2
jmp 0x4017d7
test bl, 0x40
je 0x4017d7
test byte [edi], 0x40
je 0x4017d7
or dword [edi + 4], 0x40
or word [esi + 0x14], 4
test ebx, 0x4000
je 0x401842
test ebx, 0x10000
je 0x401822
or dword [edi + 4], 0x4000
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401803
movzx eax, word [edx + 2]
mov word [esi + 0x1c], ax
jmp 0x4018f0
cmp eax, 1
jne 0x401815
movzx eax, word [edx + 8]
mov word [esi + 0x1c], ax
jmp 0x4018f0
movzx eax, word [edx + 0xa]
mov word [esi + 0x1c], ax
jmp 0x4018f0
test ebx, 0x8000
je 0x4018f0
mov ax, word [edx + 2]
mov word [esi + 0x1c], ax
or dword [edi + 4], 0x4000
jmp 0x4018f0
mov eax, dword [esp + 0x20]
movzx ecx, word [esi + 0x14]
cmp eax, 1
jne 0x401881
or ecx, 0x100
mov word [esi + 0x14], cx
test ebx, 0x10000
je 0x4018f0
test ebx, 0x80000
je 0x401877
cmp dword [esp + 0x18], 0xc0
jae 0x4018e9
mov ax, word [edx + 8]
mov word [esi + 0x1c], ax
jmp 0x4018e9
cmp eax, 2
jne 0x4018d7
or ecx, 0x200
mov word [esi + 0x14], cx
test ebx, 0x4010000
je 0x4018f0
cmp dword [esp + 0x18], 0xc0
jb 0x4018ae
test ebx, 0x80000
jne 0x401a20
test ebx, 0x4000000
je 0x4018cd
test byte [edi + 0x24], 8
je 0x4018cd
or dword [edi + 4], 0x2000000
mov ax, word [edx + 0xa]
mov word [esi + 0x1c], ax
jmp 0x4018f0
mov ax, word [edx + 8]
mov word [esi + 0x1c], ax
jmp 0x4018f0
mov eax, ebx
mov word [esi + 0x14], cx
and eax, 0x1010008
cmp eax, 0x10000
jne 0x4018f0
or dword [edi + 4], 0x2000
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40191f
test ebx, 0x20000000
je 0x40191f
mov al, byte [edx + 4]
test al, 4
je 0x40190d
test byte [edi + 0x24], 8
jne 0x401917
test al, 8
je 0x40191f
test byte [edi + 0x24], 0x10
je 0x40191f
mov ax, word [edx + 8]
mov word [esi + 0x1c], ax
mov al, byte [ebp + 0xc]
mov edx, dword [esp + 0x44]
sub al, dl
mov byte [esi + 0x2f], al
cmp al, 0xf
ja 0x401a24
test ecx, ecx
je 0x401944
push edi
call fcn.004045c0
add esp, 4
mov word [esi + 0x16], ax
mov ebx, dword [esp + 0x28]
mov ax, word [ebx + 6]
mov word [esi + 0x34], ax
test dword [ebp + 0x18], 0x4000
je 0x401a08
mov dl, byte [ebx + 4]
test dl, dl
je 0x401996
mov al, dl
and al, 2
movzx ecx, al
mov al, dl
and al, 8
add cx, cx
movzx eax, al
or cx, ax
mov al, dl
and al, 0x20
add cx, cx
movzx eax, al
and dl, 0xd5
or cx, ax
movzx eax, dl
shl cx, 6
or cx, ax
mov word [esi + 0x38], cx
mov dl, byte [ebx + 3]
test dl, dl
je 0x4019cf
mov al, dl
and al, 2
movzx ecx, al
mov al, dl
and al, 8
add cx, cx
movzx eax, al
or cx, ax
mov al, dl
and al, 0x20
add cx, cx
movzx eax, al
and dl, 0xd5
or cx, ax
movzx eax, dl
shl cx, 6
or cx, ax
mov word [esi + 0x36], cx
mov dl, byte [ebx + 5]
test dl, dl
je 0x401a08
mov al, dl
and al, 2
movzx ecx, al
mov al, dl
and al, 8
add cx, cx
movzx eax, al
or cx, ax
mov al, dl
and al, 0x20
add cx, cx
movzx eax, al
and dl, 0xd5
or cx, ax
movzx eax, dl
shl cx, 6
or cx, ax
mov word [esi + 0x3a], cx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0059a5ad
add esp, 0x28
ret
mov edx, dword [esp + 0x44]
cmp byte [edx], 0x9b
jne 0x401a89
push 0x40
push 0
push esi
call fcn.0059c4a0
mov eax, dword [ebp + 4]
add esp, 0xc
and eax, dword [ebp]
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x10], eax
mov eax, 0x2745
mov word [esi + 0x1c], ax
mov eax, 0x100
or word [esi + 0x34], ax
mov byte [esi], 0x9b
mov word [esi + 0x30], 0xffff
mov byte [esi + 0x2f], 1
mov eax, dword [ebp + 0xc]
sub eax, ecx
dec eax
add dword [ebp + 0x10], eax
lea eax, [ecx + 1]
pop edi
pop esi
mov dword [ebp + 0xc], eax
mov eax, 1
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0059a5ad
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059a5ad
add esp, 0x28
ret