Function at 0x405720
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
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 - 0x24], ebx
push edi
call fcn.0045f600
test al, al
je 0x405756
cmp esi, dword [ebx + 0x1c]
jge 0x405764
push dword [ebx + 0x14]
mov ecx, edi
push str.Too_few_parameters_passed_to_function.
call fcn.0040dc00
xor al, al
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x4e9dcc]
cmp ecx, dword [0x4e9dd0]
jne 0x40577d
call fcn.0040728a
mov ecx, dword [0x4e9dcc]
cmp ecx, dword [0x4e9dc8]
jb 0x405792
mov eax, dword [0x4ea490]
mov dword [ecx], eax
mov ecx, dword [0x4e9dcc]
add ecx, 0xc
mov dword [0x4e9dcc], ecx
mov dword [ecx], 0
mov dword [ecx + 4], ebx
mov dword [ecx + 8], 1
mov al, byte [ebx + 0x35]
test al, al
jne 0x4057bb
mov dword [ebp - 0x34], 0
jmp 0x4057c9
movzx eax, al
shl eax, 5
call fcn.004b5750
mov dword [ebp - 0x34], esp
movzx eax, byte [ebx + 0x36]
shl eax, 2
mov dword [ebp - 0x30], 0
call fcn.004b5750
mov edx, dword [ebx + 0x2c]
xor eax, eax
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x2c], eax
test edx, edx
je 0x405838
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, dword [eax + 8]
cmp ecx, 5
je 0x405817
cmp ecx, 4
jne 0x405894
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x405811
mov ecx, dword [eax + 0xc]
call fcn.00405470
test byte [eax + 0x15], 0x40
je 0x405894
mov esi, dword [eax]
test esi, esi
je 0x405891
mov eax, dword [esi]
mov ecx, esi
push edx
mov eax, dword [eax + 0x28]
call eax
test al, al
je 0x405891
mov edx, dword [ebp - 0x20]
mov eax, 1
mov dword [ebp - 0x2c], eax
mov dword [edx], esi
mov esi, dword [ebx + 0x30]
mov edx, eax
mov ebx, eax
mov byte [ebp - 2], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], esi
mov cl, byte [eax + 0x36]
movzx eax, cl
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x2c], eax
jae 0x405cf1
nop dword [eax]
mov dword [ebp - 0x28], ebx
xor cl, cl
mov bl, byte [esi]
xor bh, bh
mov dword [ebp - 0x38], edx
mov byte [ebp - 1], cl
cmp bl, 0x80
jb 0x405925
mov edi, dword [ebp - 0xc]
jne 0x4058fd
mov cl, 1
jmp 0x40590c
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x2c]
lea eax, [ebp + 8]
push eax
push str.__Class
call fcn.00478a90
test eax, eax
je 0x4058c3
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4058bc
cmp ecx, 6
jne 0x4058c3
mov ecx, 0x4cee20
jmp 0x4058c8
mov ecx, dword [eax]
add ecx, 8
jmp 0x4058c8
mov ecx, 0x4d0b80
mov edx, dword [esi]
call fcn.0040dfa0
cmp eax, 1
jne 0x4058ef
mov dword [edi + 8], 0
mov dword [edi], 0x4cee20
mov dword [edi + 4], 0
xor edi, edi
jmp 0x4060f3
mov dword [edi + 0x1c], 0
xor edi, edi
jmp 0x4060f3
cmp bl, 0x82
jne 0x405906
mov bh, bl
jmp 0x40590c
cmp bl, 0x81
cmove edi, edx
mov bl, byte [esi + 1]
inc esi
cmp bl, 0x80
jae 0x40588b
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov byte [ebp - 1], cl
mov eax, dword [ebp - 0x20]
lea eax, [eax + edx*4]
mov dword [ebp - 0x14], eax
cmp bl, 0x11
jne 0x40595f
mov eax, 8
call fcn.004b5766
mov eax, dword [ebp + 0x10]
mov ecx, esp
mov ebx, dword [ebp - 8]
sub eax, ebx
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
lea eax, [eax + ebx*4]
mov dword [ecx], eax
mov dword [edi], ecx
jmp 0x405cd5
test bh, bh
je 0x405a49
test cl, cl
je 0x405993
mov esi, dword [ebp + 0x10]
cmp dword [ebp - 8], esi
mov esi, dword [ebp - 0x10]
jge 0x405a49
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [edi + eax*4]
mov edi, dword [ebp + 8]
cmp dword [eax + 8], 3
mov eax, dword [ebp - 0x14]
je 0x405a49
cmp bl, 0xb
jne 0x4059d2
cmp dword [ebp - 0xc], edx
jne 0x4059a2
mov edi, dword [edi + 0x10]
jmp 0x4059ae
mov eax, 0x200
call fcn.004b5750
mov edi, esp
xor eax, eax
mov word [edi], ax
mov eax, 0x10
call fcn.004b5766
mov esi, esp
mov dword [esi + 4], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
jmp 0x405a35
cmp bl, 0xd
jne 0x405a22
cmp dword [ebp - 0xc], edx
jne 0x4059e0
mov esi, edi
jmp 0x405a44
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.004b5750
mov eax, esp
mov dword [esi + 8], 0
mov dword [esi], 0x4cee20
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 1
jmp 0x405a3b
mov eax, 8
call fcn.004b5766
mov esi, esp
mov dword [esi + 4], 0
mov dword [esi], 0
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 1]
mov edx, dword [ebp - 0x18]
mov dword [eax], esi
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0xc], edx
jne 0x405a59
mov byte [ebp - 2], bl
mov ebx, dword [ebp - 8]
jmp 0x405cd5
mov esi, dword [ebp - 8]
cmp esi, dword [ebp + 0x10]
jge 0x405cbd
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + esi*4]
mov edi, dword [esi + 8]
cmp edi, 3
je 0x405cba
inc dword [ebp - 8]
test bh, bh
je 0x405af0
cmp edi, 4
jne 0x405aad
mov eax, dword [esi + 4]
test eax, eax
je 0x405a93
cmp eax, 2
je 0x405a93
mov eax, dword [esi]
jmp 0x405add
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x405aa3
mov ecx, dword [eax + 0xc]
call fcn.00405470
test byte [eax + 0x15], 0x40
je 0x405ab6
mov eax, dword [eax]
jmp 0x405ab8
cmp edi, 5
jne 0x405ab6
mov eax, dword [esi]
jmp 0x405ab8
xor eax, eax
push 0
push 0x4e7d2c
push 0x4e7c5c
push 0
push eax
call fcn.004b6277
add esp, 0x14
test eax, eax
je 0x405d2c
mov edx, dword [ebp - 0x18]
add eax, 8
test eax, eax
je 0x405d2c
inc dword [ebp - 0x1c]
mov ebx, dword [ebp - 8]
jmp 0x405cd2
cmp bl, 0xb
jne 0x405b8e
lea eax, [edi - 1]
xor edx, edx
cmp eax, 4
ja case.0x405b03.3
jmp dword [eax*4 + 0x406158]
mov eax, dword [esi]
cmp byte [eax + 0x17], dl
jne 0x405b19
mov ecx, dword [eax + 0xc]
call fcn.00405470
test byte [eax + 0x15], 0x40
je 0x405b3d
mov eax, 0x200
call fcn.004b5750
mov edx, esp
mov eax, edx
cmp edi, 5
jne 0x405b36
mov eax, esi
jmp 0x405b53
mov edx, eax
cmp edi, 4
jne 0x405b70
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x405b4d
mov ecx, dword [eax + 0xc]
call fcn.00405470
test byte [eax + 0x15], 0x40
je 0x405b72
cmp dword [eax], 0
je 0x405b72
mov ecx, dword [ebp + 8]
push 0x4d0b84
push esi
push dword [ebp - 0x28]
call fcn.0040e270
mov edi, eax
jmp 0x4060f3
mov edx, eax
push 0
mov ecx, esi
call fcn.00453e70
mov edi, dword [ebp - 0x14]
add esp, 4
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
mov dword [edi], eax
jmp 0x405cd2
cmp bl, 0xc
jne 0x405bd6
cmp edi, 5
jne 0x405b9c
mov eax, dword [esi]
jmp 0x405bc1
cmp edi, 4
jne 0x405d44
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x405bb5
mov ecx, dword [eax + 0xc]
call fcn.00405470
test byte [eax + 0x15], 0x40
je 0x405bbf
mov eax, dword [eax]
jmp 0x405bc1
xor eax, eax
mov edi, dword [ebp - 0x14]
mov dword [edi], eax
test eax, eax
je 0x405d4a
mov ebx, dword [ebp - 8]
jmp 0x405cd2
cmp bl, 0xd
jne 0x405be5
mov ebx, dword [ebp - 8]
mov dword [eax], esi
jmp 0x405cd2
mov ecx, esi
cmp bl, 0xe
jne 0x405bfc
call fcn.00453be0
push eax
lea ecx, [ebp - 0x48]
call fcn.00401580
jmp 0x405c0c
lea edx, [ebp - 0x48]
call fcn.00454200
test eax, eax
je 0x405d62
movzx eax, bl
sub eax, 9
je 0x405c5d
sub eax, 1
je 0x405c31
cmp dword [ebp - 0x40], 2
jne 0x405c73
movsd xmm0, qword [ebp - 0x48]
call fcn.004b5d00
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
jmp 0x405c73
cmp dword [ebp - 0x40], 1
jne 0x405c4d
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
call fcn.004b5e10
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x48], xmm0
jmp 0x405c73
movsd xmm0, qword [ebp - 0x48]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x48], xmm0
jmp 0x405c73
cmp dword [ebp - 0x40], 1
jne 0x405c73
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
call fcn.004b5e10
movsd qword [ebp - 0x48], xmm0
mov bh, byte [ebp - 1]
mov edi, dword [ebp - 0x14]
mov edx, edi
test bh, bh
je 0x405c8d
mov eax, 8
call fcn.004b5766
mov edx, esp
mov dword [edi], edx
mov eax, dword [ebp - 0x48]
sub bl, 7
mov esi, dword [ebp - 0x10]
mov dword [edx], eax
cmp bl, 2
ja 0x405cb2
mov ecx, dword [ebp - 0x44]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x18]
inc edx
test bh, bh
mov ebx, dword [ebp - 8]
cmovne edx, dword [ebp - 0x38]
jmp 0x405cd5
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
jmp 0x405cd5
mov esi, dword [ebp - 8]
test cl, cl
je 0x405d7a
mov ebx, dword [ebp - 8]
inc ebx
mov dword [eax], 0
mov dword [ebp - 8], ebx
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
inc edx
mov edi, dword [ebp + 8]
inc esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], esi
mov cl, byte [eax + 0x36]
movzx eax, cl
cmp edx, eax
jl 0x405870
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 0x37]
push eax
push dword [edx + 0x28]
movzx eax, cl
push dword [ebp - 0x20]
push eax
call fcn.0049b7f0
mov esi, eax
xor bl, bl
mov eax, dword [ebp - 0x24]
add esp, 0x10
mov byte [ebp + 0xb], bl
movzx ecx, byte [eax + 0x34]
add ecx, 0xfffffffb
cmp ecx, 0xb
ja case.0x405d25.9
jmp dword [ecx*4 + 0x40616c]
mov ecx, dword [ebp + 8]
push str.VarRef
push esi
push dword [ebp - 0x28]
call fcn.0040e270
mov edi, eax
jmp 0x4060f3
mov dword [eax], 0
mov ecx, dword [ebp + 8]
push str.Object
push esi
push dword [ebp - 0x28]
call fcn.0040e270
mov edi, eax
jmp 0x4060f3
mov ecx, dword [ebp + 8]
push str.Number
push esi
push dword [ebp - 0x28]
call fcn.0040e270
mov edi, eax
jmp 0x4060f3
mov ecx, dword [ebp + 8]
push 0
push esi
call fcn.0040e220
mov edi, eax
jmp 0x4060f3
test esi, esi
jns 0x405e8a
test esi, 0x20000000
je 0x405e7b
test esi, 0x40000000
je 0x405dd4
push 0xa
lea eax, [ebp - 0x50]
and esi, 0xfffffff
push eax
push esi
call fcn.004a3f2a
add esp, 0xc
mov ecx, edi
push eax
push str.Failed
call fcn.0040dc00
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405d25.9
movzx ecx, si
sar esi, 0x10
and esi, 0x1fff
cmp esi, 0xe
ja case.0x405dec.1
movzx eax, byte [esi + 0x4061b0]
jmp dword [eax*4 + 0x40619c]
mov bl, 1
mov dword [edi + 0x1c], 0
mov byte [ebp + 0xb], bl
jmp case.0x405d25.9
mov eax, dword [ebp - 0x2c]
add eax, ecx
cmp eax, dword [ebp + 0x10]
jge 0x405e27
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + eax*4]
push eax
push ecx
mov ecx, edi
call fcn.0040e220
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405d25.9
xor eax, eax
push eax
push ecx
mov ecx, edi
call fcn.0040e220
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405d25.9
test ecx, ecx
jne 0x405e48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push ecx
mov ecx, edi
call fcn.0040de80
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405d25.9
sub ecx, 1
mov ecx, edi
je 0x405e6f
push str.Failed
call fcn.0040dbe0
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405d25.9
call fcn.0040dd20
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405d25.9
push esi
mov ecx, edi
call fcn.0040de80
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405d25.9
cmp esi, 0x20000000
sete bl
mov byte [ebp + 0xb], bl
jmp case.0x405d25.9
mov dword [edi + 0x1c], esi
jmp case.0x405d25.9
push esi
jmp 0x405ec0
mov dword [edi + 8], 1
mov dword [edi], esi
mov dword [edi + 4], edx
jmp case.0x405d25.9
push esi
mov ecx, edi
call fcn.00405330
jmp case.0x405d25.9
xor eax, eax
test esi, esi
setne al
push eax
mov ecx, edi
call fcn.00401580
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x405f24
mov cl, byte [ebp - 2]
cmp cl, 0xb
jne 0x405f10
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4]
cmp dword [eax + 8], 0
je 0x405ef9
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 0x405f24
mov ecx, dword [eax]
test ecx, ecx
je 0x405f24
mov eax, dword [eax + 0xc]
mov dword [edi + 8], 0
mov dword [edi], ecx
mov dword [edi + 4], eax
jmp 0x405f24
cmp cl, 0xd
je 0x405f24
mov edx, dword [ebp - 0x20]
push edi
mov edx, dword [edx + eax*4]
call fcn.004061c0
add esp, 4
test bl, bl
je 0x405f61
cmp dword [edi + 8], 5
jne 0x405f36
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x405f46
push eax
call fcn.0049f222
add esp, 4
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
mov dword [edi], 0x4cee20
mov dword [edi + 4], 0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov ebx, edx
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ebx
mov esi, dword [eax + 0x30]
test edi, edi
je 0x4060ee
mov ecx, dword [ebp - 0xc]
nop dword [eax]
cmp edx, ecx
lea eax, [edx + 1]
cmovne eax, edx
mov dl, byte [esi]
mov dword [ebp - 0x28], eax
xor al, al
cmp dl, 0x80
jb 0x4060dd
nop dword [eax + 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 0x405fa0
test al, al
je 0x4060da
cmp ebx, dword [ebp + 0x10]
jge 0x4060da
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 8]
cmp ecx, 3
je 0x4060da
dec dword [ebp - 0x1c]
cmp ecx, 4
jne 0x40602a
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x405ff2
cmp ecx, 2
je 0x405ff2
mov edi, dword [eax]
jmp 0x406035
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x406002
mov ecx, dword [eax + 0xc]
call fcn.00405470
test byte [eax + 0x15], 0x40
jne 0x40602f
xor eax, eax
push 0
push 0x4e7d2c
push 0x4e7c5c
push 0
push eax
call fcn.004b6277
add esp, 0x14
test eax, eax
je 0x406033
lea edi, [eax + 8]
jmp 0x406035
cmp ecx, 5
jne 0x406008
mov eax, dword [eax]
jmp 0x40600a
xor edi, edi
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov cl, byte [esi]
mov ebx, dword [eax + ebx*4]
cmp cl, 0xb
jne 0x406079
mov eax, dword [ebx]
test eax, eax
jne 0x406058
push eax
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.00484610
jmp 0x4060c5
cmp dword [ebx + 8], 0
mov ecx, dword [ebx + 0xc]
je 0x40606c
push ecx
push eax
mov ecx, edi
call fcn.00484d20
jmp 0x4060c5
push 0
push ecx
push eax
mov ecx, edi
call fcn.00484610
jmp 0x4060c5
cmp cl, 0xd
jne 0x40609c
cmp dword [ebx + 0x14], 0
mov ecx, edi
je 0x406099
push dword [ebx + 4]
push dword [ebx]
call fcn.00484d20
mov dword [ebx + 0x14], 0
jmp 0x4060c5
push ebx
jmp 0x4060c0
lea eax, [ebp - 0x48]
mov edx, ebx
push eax
call fcn.004061c0
add esp, 4
mov ecx, edi
cmp dword [ebp - 0x40], 5
jne 0x4060bc
push dword [ebp - 0x48]
call fcn.00484a60
jmp 0x4060c5
lea eax, [ebp - 0x48]
push eax
call fcn.00483b90
cmp byte [ebp + 0xb], 0
je 0x4060d4
push 0xa
mov ecx, edi
call fcn.00484b20
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
inc ebx
inc esi
mov dword [ebp - 0x2c], ebx
inc edx
test edi, edi
jne 0x405f80
mov edi, 1
mov eax, dword [0x4e9dcc]
sub eax, 0xc
mov dword [0x4e9dcc], eax
cmp eax, dword [0x4e9dc8]
jb 0x406114
mov eax, dword [eax]
mov dword [0x4e9ddc], eax
mov dword [0x4ea490], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jle 0x406147
mov esi, dword [ebp - 0x34]
add esi, 0x14
cmp dword [esi - 0xc], 5
jne 0x406130
mov eax, dword [esi - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
test eax, eax
je 0x40613f
push eax
call fcn.0049f222
add esp, 4
add esi, 0x20
sub ebx, 1
jne 0x406121
test edi, edi
setne al
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc