Function at 0x405670
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 - 0x2c], ebx
push edi
call fcn.0045fae0
test al, al
je 0x4056a6
cmp esi, dword [ebx + 0x1c]
jge 0x4056b4
push dword [ebx + 0x14]
mov ecx, edi
push str.Too_few_parameters_passed_to_function.
call fcn.0040dbb0
xor al, al
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x4e9e3c]
cmp ecx, dword [0x4e9e40]
jne 0x4056cd
call fcn.0040721e
mov ecx, dword [0x4e9e3c]
cmp ecx, dword [0x4e9e38]
jb 0x4056e2
mov eax, dword [0x4ea504]
mov dword [ecx], eax
mov ecx, dword [0x4e9e3c]
add ecx, 0xc
mov dword [0x4e9e3c], ecx
mov dword [ecx], 0
mov dword [ecx + 4], ebx
mov dword [ecx + 8], 1
mov al, byte [ebx + 0x35]
test al, al
jne 0x40570b
mov dword [ebp - 0x34], 0
jmp 0x405719
movzx eax, al
shl eax, 5
call fcn.004b5b30
mov dword [ebp - 0x34], esp
movzx eax, byte [ebx + 0x36]
shl eax, 2
mov dword [ebp - 0x30], 0
call fcn.004b5b30
mov edx, dword [ebx + 0x2c]
xor eax, eax
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x20], eax
test edx, edx
je 0x405788
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, dword [eax + 8]
cmp ecx, 5
je 0x405767
cmp ecx, 4
jne 0x4057e4
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x405761
mov ecx, dword [eax + 0xc]
call fcn.004053c0
test byte [eax + 0x15], 0x40
je 0x4057e4
mov esi, dword [eax]
test esi, esi
je 0x4057e1
mov eax, dword [esi]
mov ecx, esi
push edx
mov eax, dword [eax + 0x28]
call eax
test al, al
je 0x4057e1
mov edx, dword [ebp - 0x24]
mov eax, 1
mov dword [ebp - 0x20], eax
mov dword [edx], esi
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov esi, 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], esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x20], eax
jae 0x405c91
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 0x405875
mov edi, dword [ebp - 0x18]
jne 0x40584d
mov cl, 1
jmp 0x40585c
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x2c]
lea eax, [ebp + 8]
push eax
push str.__Class
call fcn.004793a0
test eax, eax
je 0x405813
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40580c
cmp ecx, 6
jne 0x405813
mov ecx, 0x4cee98
jmp 0x405818
mov ecx, dword [eax]
add ecx, 8
jmp 0x405818
mov ecx, 0x4d0bf8
mov edx, dword [esi]
call fcn.0040df50
cmp eax, 1
jne 0x40583f
mov dword [edi + 8], 0
mov dword [edi], 0x4cee98
mov dword [edi + 4], 0
xor edi, edi
jmp 0x40603e
mov dword [edi + 0x1c], 0
xor edi, edi
jmp 0x40603e
cmp bl, 0x82
jne 0x405856
mov bh, bl
jmp 0x40585c
cmp bl, 0x81
cmove edi, edx
mov bl, byte [esi + 1]
inc esi
cmp bl, 0x80
jae 0x4057db
mov dword [ebp - 0x18], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], esi
mov byte [ebp - 1], cl
mov eax, dword [ebp - 0x24]
lea eax, [eax + edx*4]
mov dword [ebp - 0xc], eax
cmp bl, 0x11
jne 0x4058b7
mov eax, 8
call fcn.004b5b46
mov edi, dword [ebp - 0x14]
xor esi, esi
mov eax, dword [ebp + 0x10]
mov ecx, esp
mov edx, dword [ebp - 0x10]
sub eax, edi
cmp edi, dword [ebp + 0x10]
cmovge eax, esi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
lea eax, [eax + edi*4]
mov dword [ecx], eax
mov dword [esi], ecx
jmp 0x405c0e
test bh, bh
je 0x4059a1
test cl, cl
je 0x4058eb
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
jge 0x4059a1
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov eax, dword [esi + eax*4]
mov esi, dword [ebp - 8]
cmp dword [eax + 8], 3
mov eax, dword [ebp - 0xc]
je 0x4059a1
cmp bl, 0xb
jne 0x40592a
cmp dword [ebp - 0x18], edx
jne 0x4058fa
mov edi, dword [edi + 0x10]
jmp 0x405906
mov eax, 0x200
call fcn.004b5b30
mov edi, esp
xor eax, eax
mov word [edi], ax
mov eax, 0x10
call fcn.004b5b46
mov esi, esp
mov dword [esi + 4], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
jmp 0x40598d
cmp bl, 0xd
jne 0x40597a
cmp dword [ebp - 0x18], edx
jne 0x405938
mov esi, edi
jmp 0x40599c
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.004b5b30
mov eax, esp
mov dword [esi + 8], 0
mov dword [esi], 0x4cee98
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 1
jmp 0x405993
mov eax, 8
call fcn.004b5b46
mov esi, esp
mov dword [esi + 4], 0
mov dword [esi], 0
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp - 1]
mov edx, dword [ebp - 0x10]
mov dword [eax], esi
mov esi, dword [ebp - 8]
cmp dword [ebp - 0x18], edx
jne 0x4059ae
mov byte [ebp - 2], bl
jmp 0x405c11
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebp + 0x10]
jge 0x405c00
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + edi*4]
mov esi, dword [edi + 8]
cmp esi, 3
je 0x405bfd
inc dword [ebp - 0x14]
test bh, bh
je 0x405a42
cmp esi, 4
jne 0x405a02
mov eax, dword [edi + 4]
test eax, eax
je 0x4059e8
cmp eax, 2
je 0x4059e8
mov eax, dword [edi]
jmp 0x405a32
mov eax, dword [edi]
cmp byte [eax + 0x17], 0
jne 0x4059f8
mov ecx, dword [eax + 0xc]
call fcn.004053c0
test byte [eax + 0x15], 0x40
je 0x405a0b
mov eax, dword [eax]
jmp 0x405a0d
cmp esi, 5
jne 0x405a0b
mov eax, dword [edi]
jmp 0x405a0d
xor eax, eax
push 0
push 0x4e7d2c
push 0x4e7c5c
push 0
push eax
call fcn.004b6568
add esp, 0x14
test eax, eax
je 0x405c31
mov edx, dword [ebp - 0x10]
add eax, 8
test eax, eax
je 0x405c31
inc dword [ebp - 0x1c]
jmp 0x405c0e
cmp bl, 0xb
jne 0x405add
lea eax, [esi - 1]
xor edx, edx
cmp eax, 4
ja case.0x405a55.3
jmp dword [eax*4 + 0x4060a8]
mov eax, dword [edi]
cmp byte [eax + 0x17], dl
jne 0x405a6b
mov ecx, dword [eax + 0xc]
call fcn.004053c0
test byte [eax + 0x15], 0x40
je 0x405a8f
mov eax, 0x200
call fcn.004b5b30
mov edx, esp
mov eax, edx
cmp esi, 5
jne 0x405a88
mov eax, edi
jmp 0x405aa5
mov edx, eax
cmp esi, 4
jne 0x405ac2
mov eax, dword [edi]
cmp byte [eax + 0x17], 0
jne 0x405a9f
mov ecx, dword [eax + 0xc]
call fcn.004053c0
test byte [eax + 0x15], 0x40
je 0x405ac4
cmp dword [eax], 0
je 0x405ac4
mov ecx, dword [ebp + 8]
push 0x4d0bfc
push edi
push dword [ebp - 0x28]
call fcn.0040e220
mov edi, eax
jmp 0x40603e
mov edx, eax
push 0
mov ecx, edi
call fcn.00453e50
mov esi, dword [ebp - 0xc]
add esp, 4
mov edx, dword [ebp - 0x10]
mov dword [esi], eax
jmp 0x405c0e
cmp bl, 0xc
jne 0x405b22
cmp esi, 5
jne 0x405aeb
mov eax, dword [edi]
jmp 0x405b10
cmp esi, 4
jne 0x405c49
mov eax, dword [edi]
cmp byte [eax + 0x17], 0
jne 0x405b04
mov ecx, dword [eax + 0xc]
call fcn.004053c0
test byte [eax + 0x15], 0x40
je 0x405b0e
mov eax, dword [eax]
jmp 0x405b10
xor eax, eax
mov esi, dword [ebp - 0xc]
mov dword [esi], eax
test eax, eax
je 0x405c4f
jmp 0x405c0e
cmp bl, 0xd
jne 0x405b2e
mov dword [eax], edi
jmp 0x405c0e
mov ecx, edi
cmp bl, 0xe
jne 0x405b45
call fcn.00453bc0
push eax
lea ecx, [ebp - 0x48]
call fcn.00401560
jmp 0x405b55
lea edx, [ebp - 0x48]
call fcn.004541e0
test eax, eax
je 0x405c67
movzx eax, bl
sub eax, 9
je 0x405ba6
sub eax, 1
je 0x405b7a
cmp dword [ebp - 0x40], 2
jne 0x405bbc
movsd xmm0, qword [ebp - 0x48]
call fcn.004b6000
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
jmp 0x405bbc
cmp dword [ebp - 0x40], 1
jne 0x405b96
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
call fcn.004b6100
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x48], xmm0
jmp 0x405bbc
movsd xmm0, qword [ebp - 0x48]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x48], xmm0
jmp 0x405bbc
cmp dword [ebp - 0x40], 1
jne 0x405bbc
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
call fcn.004b6100
movsd qword [ebp - 0x48], xmm0
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0xc]
mov edx, esi
test bh, bh
je 0x405bd6
mov eax, 8
call fcn.004b5b46
mov edx, esp
mov dword [esi], edx
mov eax, dword [ebp - 0x48]
sub bl, 7
mov esi, dword [ebp - 8]
mov dword [edx], eax
cmp bl, 2
ja 0x405bf8
mov ecx, dword [ebp - 0x44]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
inc edx
test bh, bh
cmovne edx, dword [ebp - 0x38]
jmp 0x405c11
mov edx, dword [ebp - 0x10]
jmp 0x405c11
mov edi, dword [ebp - 0x14]
test cl, cl
je 0x405c7f
inc edi
mov dword [eax], 0
mov dword [ebp - 0x14], edi
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
inc edx
mov edi, dword [ebp + 8]
inc esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], esi
mov cl, byte [eax + 0x36]
movzx eax, cl
cmp edx, eax
jge 0x405c91
mov ebx, dword [ebp - 0x14]
jmp 0x4057c0
mov ecx, dword [ebp + 8]
push str.VarRef
push edi
push dword [ebp - 0x28]
call fcn.0040e220
mov edi, eax
jmp 0x40603e
mov dword [eax], 0
mov ecx, dword [ebp + 8]
push str.Object
push edi
push dword [ebp - 0x28]
call fcn.0040e220
mov edi, eax
jmp 0x40603e
mov ecx, dword [ebp + 8]
push str.Number
push edi
push dword [ebp - 0x28]
call fcn.0040e220
mov edi, eax
jmp 0x40603e
mov ecx, dword [ebp + 8]
push 0
push edi
call fcn.0040e1d0
mov edi, eax
jmp 0x40603e
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.0049bb10
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.0x405cc2.9
jmp dword [eax*4 + 0x4060bc]
test ecx, ecx
jns 0x405dea
test ecx, 0x20000000
je 0x405ddb
test ecx, 0x40000000
je 0x405d11
push 0xa
lea eax, [ebp - 0x50]
and ecx, 0xfffffff
push eax
push ecx
call fcn.004a3fe1
add esp, 0xc
mov ecx, edi
push eax
push str.Failed
call fcn.0040dbb0
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405cc2.9
mov eax, ecx
movzx edx, cx
sar eax, 0x10
and eax, 0x1fff
cmp eax, 0xe
ja case.0x405d2e.1
movzx eax, byte [eax + 0x406100]
jmp dword [eax*4 + 0x4060ec]
mov bl, 1
mov dword [edi + 0x1c], 0
mov byte [ebp + 0xb], bl
jmp case.0x405cc2.9
cmp ecx, 0xa00affff
jne 0x405d64
push str.Invalid_parameter_s_.
mov ecx, edi
call fcn.0040db90
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405cc2.9
mov eax, dword [ebp - 0x20]
add eax, edx
cmp eax, dword [ebp + 0x10]
jge 0x405d87
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4]
mov ecx, edi
push eax
push edx
call fcn.0040e1d0
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405cc2.9
xor eax, eax
mov ecx, edi
push eax
push edx
call fcn.0040e1d0
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405cc2.9
test edx, edx
jne 0x405da8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
push edx
mov ecx, edi
call fcn.0040de30
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405cc2.9
mov ecx, edi
sub edx, 1
je 0x405dcf
push str.Failed
call fcn.0040db90
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405cc2.9
call fcn.0040dcd0
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405cc2.9
push ecx
mov ecx, edi
call fcn.0040de30
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405cc2.9
cmp ecx, 0x20000000
sete bl
mov byte [ebp + 0xb], bl
jmp case.0x405cc2.9
mov dword [edi + 0x1c], ecx
jmp case.0x405cc2.9
push ecx
jmp 0x405e20
mov dword [edi + 8], 1
mov dword [edi], ecx
mov dword [edi + 4], edx
jmp case.0x405cc2.9
push ecx
mov ecx, edi
call fcn.00405280
jmp case.0x405cc2.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 0x405e84
mov cl, byte [ebp - 2]
cmp cl, 0xb
jne 0x405e70
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4]
cmp dword [eax + 8], 0
je 0x405e59
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 0x405e84
mov ecx, dword [eax]
test ecx, ecx
je 0x405e84
mov eax, dword [eax + 0xc]
mov dword [edi + 8], 0
mov dword [edi], ecx
mov dword [edi + 4], eax
jmp 0x405e84
cmp cl, 0xd
je 0x405e84
mov edx, dword [ebp - 0x24]
push edi
mov edx, dword [edx + eax*4]
call fcn.00406110
add esp, 4
test bl, bl
je 0x405ec1
cmp dword [edi + 8], 5
jne 0x405e96
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x405ea6
push eax
call fcn.0049f542
add esp, 4
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
mov dword [edi], 0x4cee98
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 0x406039
mov dl, byte [esi]
xor al, al
cmp dl, 0x80
jb 0x405efa
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 0x405ee0
mov ecx, dword [ebp - 0x14]
cmp ebx, dword [ebp - 0x18]
jne 0x405f05
dec ecx
jmp 0x406028
test al, al
je 0x406028
cmp ecx, dword [ebp + 0x10]
jge 0x406028
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 8]
cmp ecx, 3
je 0x406025
dec dword [ebp - 0x1c]
cmp ecx, 4
jne 0x405f78
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x405f40
cmp ecx, 2
je 0x405f40
mov edi, dword [eax]
jmp 0x405f83
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x405f50
mov ecx, dword [eax + 0xc]
call fcn.004053c0
test byte [eax + 0x15], 0x40
jne 0x405f7d
xor eax, eax
push 0
push 0x4e7d2c
push 0x4e7c5c
push 0
push eax
call fcn.004b6568
add esp, 0x14
test eax, eax
je 0x405f81
lea edi, [eax + 8]
jmp 0x405f83
cmp ecx, 5
jne 0x405f56
mov eax, dword [eax]
jmp 0x405f58
xor edi, edi
mov eax, dword [ebp - 0x24]
mov cl, byte [esi]
mov ebx, dword [eax + ebx*4]
cmp cl, 0xb
jne 0x405fc4
mov eax, dword [ebx]
test eax, eax
jne 0x405fa3
push eax
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.00485080
jmp 0x406010
cmp dword [ebx + 8], 0
mov ecx, dword [ebx + 0xc]
je 0x405fb7
push ecx
push eax
mov ecx, edi
call fcn.00485790
jmp 0x406010
push 0
push ecx
push eax
mov ecx, edi
call fcn.00485080
jmp 0x406010
cmp cl, 0xd
jne 0x405fe7
cmp dword [ebx + 0x14], 0
mov ecx, edi
je 0x405fe4
push dword [ebx + 4]
push dword [ebx]
call fcn.00485790
mov dword [ebx + 0x14], 0
jmp 0x406010
push ebx
jmp 0x40600b
lea eax, [ebp - 0x48]
mov edx, ebx
push eax
call fcn.00406110
add esp, 4
mov ecx, edi
cmp dword [ebp - 0x40], 5
jne 0x406007
push dword [ebp - 0x48]
call fcn.004854d0
jmp 0x406010
lea eax, [ebp - 0x48]
push eax
call fcn.004845e0
cmp byte [ebp + 0xb], 0
je 0x40601f
push 0xa
mov ecx, edi
call fcn.00485590
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 0x405ed7
mov edi, 1
mov eax, dword [0x4e9e3c]
sub eax, 0xc
mov dword [0x4e9e3c], eax
cmp eax, dword [0x4e9e38]
jb 0x40605f
mov eax, dword [eax]
mov dword [0x4e9e4c], eax
mov dword [0x4ea504], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jle 0x406096
mov esi, dword [ebp - 0x34]
add esi, 0x14
nop dword [eax]
cmp dword [esi - 0xc], 5
jne 0x40607f
mov eax, dword [esi - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
test eax, eax
je 0x40608e
push eax
call fcn.0049f542
add esp, 4
add esi, 0x20
sub ebx, 1
jne 0x406070
test edi, edi
setne al
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc