Function at 0x405460
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
push edi
call fcn.0045f870
test al, al
je 0x405496
cmp esi, dword [ebx + 0x1c]
jge 0x4054a4
push dword [ebx + 0x14]
mov ecx, edi
push str.Too_few_parameters_passed_to_function.
call fcn.0040da60
xor al, al
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x4e8eac]
cmp ecx, dword [0x4e8eb0]
jne 0x4054bd
call fcn.0040709e
mov ecx, dword [0x4e8eac]
cmp ecx, dword [0x4e8ea8]
jb 0x4054d2
mov eax, dword [0x4e9574]
mov dword [ecx], eax
mov ecx, dword [0x4e8eac]
add ecx, 0xc
mov dword [0x4e8eac], ecx
mov dword [ecx], 0
mov dword [ecx + 4], ebx
mov dword [ecx + 8], 1
mov al, byte [ebx + 0x35]
test al, al
jne 0x4054fb
mov dword [ebp - 0x34], 0
jmp 0x405509
movzx eax, al
shl eax, 5
call fcn.004b53e0
mov dword [ebp - 0x34], esp
movzx eax, byte [ebx + 0x36]
shl eax, 2
mov dword [ebp - 0x30], 0
call fcn.004b53e0
mov edx, dword [ebx + 0x2c]
xor eax, eax
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x20], eax
test edx, edx
je 0x405578
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, dword [eax + 8]
cmp ecx, 5
je 0x405557
cmp ecx, 4
jne 0x4055d1
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x405551
mov ecx, dword [eax + 0xc]
call fcn.004051b0
test byte [eax + 0x15], 0x40
je 0x4055d1
mov esi, dword [eax]
test esi, esi
je 0x4055ce
mov eax, dword [esi]
mov ecx, esi
push edx
mov eax, dword [eax + 0x28]
call eax
test al, al
je 0x4055ce
mov edx, dword [ebp - 0x24]
mov eax, 1
mov dword [ebp - 0x20], eax
mov dword [edx], esi
mov ecx, dword [ebp - 0x2c]
mov esi, eax
mov edx, dword [ebx + 0x30]
mov ebx, eax
mov byte [ebp - 2], 0
mov dword [ebp - 0x18], 0xffffffff
mov cl, byte [ecx + 0x36]
movzx eax, cl
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x20], eax
jae 0x405a84
nop dword [eax]
mov dword [ebp - 0x28], ebx
xor cl, cl
mov bl, byte [edx]
xor bh, bh
mov byte [ebp - 1], cl
cmp bl, 0x80
jb 0x405662
mov edi, dword [ebp - 0x18]
jne 0x40563a
mov cl, 1
jmp 0x405649
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x2c]
lea eax, [ebp + 8]
push eax
push str.__Class
call fcn.00478fc0
test eax, eax
je 0x405600
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4055f9
cmp ecx, 6
jne 0x405600
mov ecx, 0x4cdea8
jmp 0x405605
mov ecx, dword [eax]
add ecx, 8
jmp 0x405605
mov ecx, 0x4cfc08
mov edx, dword [esi]
call fcn.0040de00
cmp eax, 1
jne 0x40562c
mov dword [edi + 8], 0
mov dword [edi], 0x4cdea8
mov dword [edi + 4], 0
xor edi, edi
jmp 0x405e3e
mov dword [edi + 0x1c], 0
xor edi, edi
jmp 0x405e3e
cmp bl, 0x82
jne 0x405643
mov bh, bl
jmp 0x405649
cmp bl, 0x81
cmove edi, esi
mov bl, byte [edx + 1]
inc edx
cmp bl, 0x80
jae 0x4055c8
mov dword [ebp - 0x18], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], edx
mov byte [ebp - 1], cl
mov eax, dword [ebp - 0x24]
lea eax, [eax + esi*4]
mov dword [ebp - 0x10], eax
cmp bl, 0x11
jne 0x4056c7
mov eax, 8
call fcn.004b53f6
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov edi, dword [ebp - 0x14]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
mov edx, esp
sub ecx, edi
cmp edi, ebx
cmovl eax, ecx
mov dword [edx + 4], eax
mov eax, dword [ebp + 0xc]
lea eax, [eax + edi*4]
mov dword [edx], eax
mov dword [esi], edx
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
inc esi
mov edi, dword [ebp + 8]
inc edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edx
mov cl, byte [eax + 0x36]
movzx eax, cl
cmp esi, eax
jge 0x405a84
mov ebx, dword [ebp - 0x14]
jmp 0x4055b0
test bh, bh
je 0x4057b1
test cl, cl
je 0x4056fb
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
jge 0x4057b1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 8]
cmp dword [eax + 8], 3
mov eax, dword [ebp - 0x10]
je 0x4057b1
cmp bl, 0xb
jne 0x40573a
cmp dword [ebp - 0x18], esi
jne 0x40570a
mov edi, dword [edi + 0x10]
jmp 0x405716
mov eax, 0x200
call fcn.004b53e0
mov edi, esp
xor eax, eax
mov word [edi], ax
mov eax, 0x10
call fcn.004b53f6
mov esi, esp
mov dword [esi + 4], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
jmp 0x40579d
cmp bl, 0xd
jne 0x40578a
cmp dword [ebp - 0x18], esi
jne 0x405748
mov esi, edi
jmp 0x4057ac
mov eax, dword [ebp - 0x30]
mov esi, eax
inc eax
shl esi, 5
add esi, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov eax, 0x200
call fcn.004b53e0
mov eax, esp
mov dword [esi + 8], 0
mov dword [esi], 0x4cdea8
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 1
jmp 0x4057a3
mov eax, 8
call fcn.004b53f6
mov esi, esp
mov dword [esi + 4], 0
mov dword [esi], 0
mov cl, byte [ebp - 1]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov dword [eax], esi
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 0x18], esi
jne 0x4057be
mov byte [ebp - 2], bl
jmp 0x4056a3
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebp + 0x10]
jge 0x405a11
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + edi*4]
mov esi, dword [edi + 8]
cmp esi, 3
je 0x405a0b
inc dword [ebp - 0x14]
test bh, bh
je 0x40584f
cmp esi, 4
jne 0x405812
mov eax, dword [edi + 4]
test eax, eax
je 0x4057f8
cmp eax, 2
je 0x4057f8
mov eax, dword [edi]
jmp 0x40583f
mov eax, dword [edi]
cmp byte [eax + 0x17], 0
jne 0x405808
mov ecx, dword [eax + 0xc]
call fcn.004051b0
test byte [eax + 0x15], 0x40
je 0x40581b
mov eax, dword [eax]
jmp 0x40581d
cmp esi, 5
jne 0x40581b
mov eax, dword [edi]
jmp 0x40581d
xor eax, eax
push 0
push 0x4e6d9c
push 0x4e6ccc
push 0
push eax
call fcn.004b5e18
add esp, 0x14
test eax, eax
je 0x405a24
add eax, 8
test eax, eax
je 0x405a24
inc dword [ebp - 0x1c]
jmp 0x40569d
cmp bl, 0xb
jne 0x4058e7
lea eax, [esi - 1]
xor edx, edx
cmp eax, 4
ja case.0x405862.3
jmp dword [eax*4 + 0x405ea8]
mov eax, dword [edi]
cmp byte [eax + 0x17], dl
jne 0x405878
mov ecx, dword [eax + 0xc]
call fcn.004051b0
test byte [eax + 0x15], 0x40
je 0x40589c
mov eax, 0x200
call fcn.004b53e0
mov edx, esp
mov eax, edx
cmp esi, 5
jne 0x405895
mov eax, edi
jmp 0x4058b2
mov edx, eax
cmp esi, 4
jne 0x4058cf
mov eax, dword [edi]
cmp byte [eax + 0x17], 0
jne 0x4058ac
mov ecx, dword [eax + 0xc]
call fcn.004051b0
test byte [eax + 0x15], 0x40
je 0x4058d1
cmp dword [eax], 0
je 0x4058d1
mov ecx, dword [ebp + 8]
push 0x4cfc0c
push edi
push dword [ebp - 0x28]
call fcn.0040e0d0
mov edi, eax
jmp 0x405e3e
mov edx, eax
push 0
mov ecx, edi
call fcn.00453bb0
mov esi, dword [ebp - 0x10]
add esp, 4
mov dword [esi], eax
jmp 0x40569d
cmp bl, 0xc
jne 0x40592c
cmp esi, 5
jne 0x4058f5
mov eax, dword [edi]
jmp 0x40591a
cmp esi, 4
jne 0x405a3c
mov eax, dword [edi]
cmp byte [eax + 0x17], 0
jne 0x40590e
mov ecx, dword [eax + 0xc]
call fcn.004051b0
test byte [eax + 0x15], 0x40
je 0x405918
mov eax, dword [eax]
jmp 0x40591a
xor eax, eax
mov esi, dword [ebp - 0x10]
mov dword [esi], eax
test eax, eax
je 0x405a42
jmp 0x4056a0
cmp bl, 0xd
jne 0x405938
mov dword [eax], edi
jmp 0x4056a0
mov ecx, edi
cmp bl, 0xe
jne 0x40594f
call fcn.00453920
push eax
lea ecx, [ebp - 0x44]
call fcn.00401560
jmp 0x40595f
lea edx, [ebp - 0x44]
call fcn.00453f40
test eax, eax
je 0x405a5a
movzx eax, bl
sub eax, 9
je 0x4059b0
sub eax, 1
je 0x405984
cmp dword [ebp - 0x3c], 2
jne 0x4059c6
movsd xmm0, qword [ebp - 0x44]
call fcn.004b58b0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
jmp 0x4059c6
cmp dword [ebp - 0x3c], 1
jne 0x4059a0
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
call fcn.004b59b0
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x44], xmm0
jmp 0x4059c6
movsd xmm0, qword [ebp - 0x44]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x44], xmm0
jmp 0x4059c6
cmp dword [ebp - 0x3c], 1
jne 0x4059c6
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
call fcn.004b59b0
movsd qword [ebp - 0x44], xmm0
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x10]
mov edx, esi
test bh, bh
je 0x4059e0
mov eax, 8
call fcn.004b53f6
mov edx, esp
mov dword [esi], edx
mov eax, dword [ebp - 0x44]
sub bl, 7
mov dword [edx], eax
cmp bl, 2
ja 0x40569d
mov ecx, dword [ebp - 0x40]
mov dword [edx + 4], ecx
test bh, bh
jne 0x40569d
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
inc esi
jmp 0x4056a3
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
test cl, cl
je 0x405a72
inc edi
mov dword [eax], 0
mov dword [ebp - 0x14], edi
jmp 0x4056a3
mov ecx, dword [ebp + 8]
push str.VarRef
push edi
push dword [ebp - 0x28]
call fcn.0040e0d0
mov edi, eax
jmp 0x405e3e
mov dword [eax], 0
mov ecx, dword [ebp + 8]
push str.Object
push edi
push dword [ebp - 0x28]
call fcn.0040e0d0
mov edi, eax
jmp 0x405e3e
mov ecx, dword [ebp + 8]
push str.Number
push edi
push dword [ebp - 0x28]
call fcn.0040e0d0
mov edi, eax
jmp 0x405e3e
mov ecx, dword [ebp + 8]
push 0
push edi
call fcn.0040e080
mov edi, eax
jmp 0x405e3e
mov esi, dword [ebp - 0x2c]
movzx eax, byte [esi + 0x37]
push eax
push dword [esi + 0x28]
movzx eax, cl
push dword [ebp - 0x24]
push eax
call fcn.0049b3e0
mov ecx, eax
xor bl, bl
movzx eax, byte [esi + 0x34]
add esp, 0x10
add eax, 0xfffffffb
mov byte [ebp + 0xb], bl
cmp eax, 0xb
ja case.0x405ab5.9
jmp dword [eax*4 + 0x405ebc]
test ecx, ecx
jns 0x405bdd
test ecx, 0x20000000
je 0x405bce
test ecx, 0x40000000
je 0x405b04
push 0xa
lea eax, [ebp - 0x4c]
and ecx, 0xfffffff
push eax
push ecx
call fcn.004a38a1
add esp, 0xc
mov ecx, edi
push eax
push str.Failed
call fcn.0040da60
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405ab5.9
mov eax, ecx
movzx edx, cx
sar eax, 0x10
and eax, 0x1fff
cmp eax, 0xe
ja case.0x405b21.1
movzx eax, byte [eax + 0x405f00]
jmp dword [eax*4 + 0x405eec]
mov bl, 1
mov dword [edi + 0x1c], 0
mov byte [ebp + 0xb], bl
jmp case.0x405ab5.9
cmp ecx, 0xa00affff
jne 0x405b57
push str.Invalid_parameter_s_.
mov ecx, edi
call fcn.0040da40
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405ab5.9
mov eax, dword [ebp - 0x20]
add eax, edx
cmp eax, dword [ebp + 0x10]
jge 0x405b7a
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4]
mov ecx, edi
push eax
push edx
call fcn.0040e080
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405ab5.9
xor eax, eax
mov ecx, edi
push eax
push edx
call fcn.0040e080
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405ab5.9
test edx, edx
jne 0x405b9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
push edx
mov ecx, edi
call fcn.0040dce0
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405ab5.9
mov ecx, edi
sub edx, 1
je 0x405bc2
push str.Failed
call fcn.0040da40
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405ab5.9
call fcn.0040db80
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405ab5.9
push ecx
mov ecx, edi
call fcn.0040dce0
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405ab5.9
cmp ecx, 0x20000000
sete bl
mov byte [ebp + 0xb], bl
jmp case.0x405ab5.9
mov dword [edi + 0x1c], ecx
jmp case.0x405ab5.9
push ecx
jmp 0x405c13
mov dword [edi + 8], 1
mov dword [edi], ecx
mov dword [edi + 4], edx
jmp case.0x405ab5.9
push ecx
mov ecx, edi
call fcn.00405070
jmp case.0x405ab5.9
xor eax, eax
test ecx, ecx
setne al
push eax
mov ecx, edi
call fcn.00401560
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x405c77
mov cl, byte [ebp - 2]
cmp cl, 0xb
jne 0x405c63
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4]
cmp dword [eax + 8], 0
je 0x405c4c
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [edi + 8], 0
mov dword [edi + 0x14], eax
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x405c77
mov ecx, dword [eax]
test ecx, ecx
je 0x405c77
mov eax, dword [eax + 0xc]
mov dword [edi + 8], 0
mov dword [edi], ecx
mov dword [edi + 4], eax
jmp 0x405c77
cmp cl, 0xd
je 0x405c77
mov edx, dword [ebp - 0x24]
push edi
mov edx, dword [edx + eax*4]
call fcn.00405f10
add esp, 4
test bl, bl
je 0x405cb4
cmp dword [edi + 8], 5
jne 0x405c89
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x405c99
push eax
call fcn.0049ee02
add esp, 4
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
mov dword [edi], 0x4cdea8
mov dword [edi + 4], 0
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
mov edi, dword [ebp - 0x1c]
mov esi, dword [esi + 0x30]
mov dword [ebp - 0x14], ecx
test edi, edi
je 0x405e39
nop word [eax + eax]
mov dl, byte [esi]
xor al, al
cmp dl, 0x80
jb 0x405cfa
nop dword [eax]
cmp dl, 0x82
movzx ecx, dl
mov dl, byte [esi + 1]
movzx eax, al
cmovne ecx, eax
inc esi
mov al, cl
cmp dl, 0x80
jae 0x405ce0
mov ecx, dword [ebp - 0x14]
cmp ebx, dword [ebp - 0x18]
jne 0x405d05
dec ecx
jmp 0x405e28
test al, al
je 0x405e28
cmp ecx, dword [ebp + 0x10]
jge 0x405e28
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 8]
cmp ecx, 3
je 0x405e25
dec dword [ebp - 0x1c]
cmp ecx, 4
jne 0x405d78
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x405d40
cmp ecx, 2
je 0x405d40
mov edi, dword [eax]
jmp 0x405d83
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x405d50
mov ecx, dword [eax + 0xc]
call fcn.004051b0
test byte [eax + 0x15], 0x40
jne 0x405d7d
xor eax, eax
push 0
push 0x4e6d9c
push 0x4e6ccc
push 0
push eax
call fcn.004b5e18
add esp, 0x14
test eax, eax
je 0x405d81
lea edi, [eax + 8]
jmp 0x405d83
cmp ecx, 5
jne 0x405d56
mov eax, dword [eax]
jmp 0x405d58
xor edi, edi
mov eax, dword [ebp - 0x24]
mov cl, byte [esi]
mov ebx, dword [eax + ebx*4]
cmp cl, 0xb
jne 0x405dc4
mov eax, dword [ebx]
test eax, eax
jne 0x405da3
push eax
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.00484d60
jmp 0x405e10
cmp dword [ebx + 8], 0
mov ecx, dword [ebx + 0xc]
je 0x405db7
push ecx
push eax
mov ecx, edi
call fcn.00485470
jmp 0x405e10
push 0
push ecx
push eax
mov ecx, edi
call fcn.00484d60
jmp 0x405e10
cmp cl, 0xd
jne 0x405de7
cmp dword [ebx + 0x14], 0
mov ecx, edi
je 0x405de4
push dword [ebx + 4]
push dword [ebx]
call fcn.00485470
mov dword [ebx + 0x14], 0
jmp 0x405e10
push ebx
jmp 0x405e0b
lea eax, [ebp - 0x44]
mov edx, ebx
push eax
call fcn.00405f10
add esp, 4
mov ecx, edi
cmp dword [ebp - 0x3c], 5
jne 0x405e07
push dword [ebp - 0x44]
call fcn.004851b0
jmp 0x405e10
lea eax, [ebp - 0x44]
push eax
call fcn.004842c0
cmp byte [ebp + 0xb], 0
je 0x405e1f
push 0xa
mov ecx, edi
call fcn.00485270
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
inc ebx
inc ecx
inc esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ecx
test edi, edi
jne 0x405cd0
mov edi, 1
mov eax, dword [0x4e8eac]
sub eax, 0xc
mov dword [0x4e8eac], eax
cmp eax, dword [0x4e8ea8]
jb 0x405e5f
mov eax, dword [eax]
mov dword [0x4e8ebc], eax
mov dword [0x4e9574], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jle 0x405e96
mov esi, dword [ebp - 0x34]
add esi, 0x14
nop dword [eax]
cmp dword [esi - 0xc], 5
jne 0x405e7f
mov eax, dword [esi - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
test eax, eax
je 0x405e8e
push eax
call fcn.0049ee02
add esp, 4
add esi, 0x20
sub ebx, 1
jne 0x405e70
test edi, edi
setne al
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc