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 - 0x28], ebx
push edi
call fcn.0045fcf0
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.0040dc30
xor al, al
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x4e9e24]
cmp ecx, dword [0x4e9e28]
jne 0x40577d
call fcn.0040728a
mov ecx, dword [0x4e9e24]
cmp ecx, dword [0x4e9e20]
jb 0x405792
mov eax, dword [0x4ea500]
mov dword [ecx], eax
mov ecx, dword [0x4e9e24]
add ecx, 0xc
mov dword [0x4e9e24], 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.004b5ce0
mov dword [ebp - 0x34], esp
movzx eax, byte [ebx + 0x36]
shl eax, 2
mov dword [ebp - 0x30], 0
call fcn.004b5ce0
mov edx, dword [ebx + 0x2c]
xor eax, eax
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x20], 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 - 0x24]
mov eax, 1
mov dword [ebp - 0x20], 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 - 0x28]
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], esi
mov cl, byte [eax + 0x36]
movzx eax, cl
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x20], eax
jae 0x405cf1
nop dword [eax]
mov dword [ebp - 0x2c], 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 - 0x18]
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.004791a0
test eax, eax
je 0x4058c3
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4058bc
cmp ecx, 6
jne 0x4058c3
mov ecx, 0x4cee30
jmp 0x4058c8
mov ecx, dword [eax]
add ecx, 8
jmp 0x4058c8
mov ecx, 0x4d0b90
mov edx, dword [esi]
call fcn.0040dfd0
cmp eax, 1
jne 0x4058ef
mov dword [edi + 8], 0
mov dword [edi], 0x4cee30
mov dword [edi + 4], 0
xor edi, edi
jmp 0x4060ee
mov dword [edi + 0x1c], 0
xor edi, edi
jmp 0x4060ee
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 - 0x18], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov byte [ebp - 1], cl
mov eax, dword [ebp - 0x24]
lea eax, [eax + edx*4]
mov dword [ebp - 0x10], eax
cmp bl, 0x11
jne 0x40595f
mov eax, 8
call fcn.004b5cf6
mov eax, dword [ebp + 0x10]
mov ecx, esp
mov ebx, dword [ebp - 8]
sub eax, ebx
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
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 - 0xc]
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 - 0x10]
je 0x405a49
cmp bl, 0xb
jne 0x4059d2
cmp dword [ebp - 0x18], edx
jne 0x4059a2
mov edi, dword [edi + 0x10]
jmp 0x4059ae
mov eax, 0x200
call fcn.004b5ce0
mov edi, esp
xor eax, eax
mov word [edi], ax
mov eax, 0x10
call fcn.004b5cf6
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 - 0x18], 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.004b5ce0
mov eax, esp
mov dword [esi + 8], 0
mov dword [esi], 0x4cee30
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.004b5cf6
mov esi, esp
mov dword [esi + 4], 0
mov dword [esi], 0
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp - 1]
mov edx, dword [ebp - 0x14]
mov dword [eax], esi
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 0x18], 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 0x4e7d1c
push 0x4e7c4c
push 0
push eax
call fcn.004b6807
add esp, 0x14
test eax, eax
je 0x405d2c
mov edx, dword [ebp - 0x14]
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.004b5ce0
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 0x4d0b94
push esi
push dword [ebp - 0x2c]
call fcn.0040e2a0
mov edi, eax
jmp 0x4060ee
mov edx, eax
push 0
mov ecx, esi
call fcn.00453eb0
mov edi, dword [ebp - 0x10]
add esp, 4
mov edx, dword [ebp - 0x14]
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 - 0x10]
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.00453c20
push eax
lea ecx, [ebp - 0x48]
call fcn.00401580
jmp 0x405c0c
lea edx, [ebp - 0x48]
call fcn.00454240
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.004b6290
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.004b63a0
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.004b63a0
movsd qword [ebp - 0x48], xmm0
mov bh, byte [ebp - 1]
mov edi, dword [ebp - 0x10]
mov edx, edi
test bh, bh
je 0x405c8d
mov eax, 8
call fcn.004b5cf6
mov edx, esp
mov dword [edi], edx
mov eax, dword [ebp - 0x48]
sub bl, 7
mov esi, dword [ebp - 0xc]
mov dword [edx], eax
cmp bl, 2
ja 0x405cb2
mov ecx, dword [ebp - 0x44]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x14]
inc edx
test bh, bh
mov ebx, dword [ebp - 8]
cmovne edx, dword [ebp - 0x38]
jmp 0x405cd5
mov edx, dword [ebp - 0x14]
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 - 0xc]
mov eax, dword [ebp - 0x28]
inc edx
mov edi, dword [ebp + 8]
inc esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
mov cl, byte [eax + 0x36]
movzx eax, cl
cmp edx, eax
jl 0x405870
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + 0x37]
push eax
push dword [edx + 0x28]
movzx eax, cl
push dword [ebp - 0x24]
push eax
call fcn.0049bf10
mov esi, eax
xor bl, bl
mov eax, dword [ebp - 0x28]
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 - 0x2c]
call fcn.0040e2a0
mov edi, eax
jmp 0x4060ee
mov dword [eax], 0
mov ecx, dword [ebp + 8]
push str.Object
push esi
push dword [ebp - 0x2c]
call fcn.0040e2a0
mov edi, eax
jmp 0x4060ee
mov ecx, dword [ebp + 8]
push str.Number
push esi
push dword [ebp - 0x2c]
call fcn.0040e2a0
mov edi, eax
jmp 0x4060ee
mov ecx, dword [ebp + 8]
push 0
push esi
call fcn.0040e250
mov edi, eax
jmp 0x4060ee
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.004a437a
add esp, 0xc
mov ecx, edi
push eax
push str.Failed
call fcn.0040dc30
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 - 0x20]
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.0040e250
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405d25.9
xor eax, eax
push eax
push ecx
mov ecx, edi
call fcn.0040e250
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.0040deb0
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.0040dc10
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405d25.9
call fcn.0040dd50
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405d25.9
push esi
mov ecx, edi
call fcn.0040deb0
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 - 0x18]
cmp eax, 0xffffffff
je 0x405f24
mov cl, byte [ebp - 2]
cmp cl, 0xb
jne 0x405f10
mov edx, dword [ebp - 0x24]
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 - 0x24]
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.0049f942
add esp, 4
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
mov dword [edi], 0x4cee30
mov dword [edi + 4], 0
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov esi, dword [eax + 0x30]
test edi, edi
je 0x4060e9
nop word [eax + eax]
mov dl, byte [esi]
xor al, al
cmp dl, 0x80
jb 0x405faa
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 0x405f90
mov ecx, dword [ebp - 0x28]
cmp ebx, dword [ebp - 0x18]
jne 0x405fb5
dec ecx
jmp 0x4060d8
test al, al
je 0x4060d8
cmp ecx, dword [ebp + 0x10]
jge 0x4060d8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 8]
cmp ecx, 3
je 0x4060d5
dec dword [ebp - 0x1c]
cmp ecx, 4
jne 0x406028
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x405ff0
cmp ecx, 2
je 0x405ff0
mov edi, dword [eax]
jmp 0x406033
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x406000
mov ecx, dword [eax + 0xc]
call fcn.00405470
test byte [eax + 0x15], 0x40
jne 0x40602d
xor eax, eax
push 0
push 0x4e7d1c
push 0x4e7c4c
push 0
push eax
call fcn.004b6807
add esp, 0x14
test eax, eax
je 0x406031
lea edi, [eax + 8]
jmp 0x406033
cmp ecx, 5
jne 0x406006
mov eax, dword [eax]
jmp 0x406008
xor edi, edi
mov eax, dword [ebp - 0x24]
mov cl, byte [esi]
mov ebx, dword [eax + ebx*4]
cmp cl, 0xb
jne 0x406074
mov eax, dword [ebx]
test eax, eax
jne 0x406053
push eax
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.00484d30
jmp 0x4060c0
cmp dword [ebx + 8], 0
mov ecx, dword [ebx + 0xc]
je 0x406067
push ecx
push eax
mov ecx, edi
call fcn.00485440
jmp 0x4060c0
push 0
push ecx
push eax
mov ecx, edi
call fcn.00484d30
jmp 0x4060c0
cmp cl, 0xd
jne 0x406097
cmp dword [ebx + 0x14], 0
mov ecx, edi
je 0x406094
push dword [ebx + 4]
push dword [ebx]
call fcn.00485440
mov dword [ebx + 0x14], 0
jmp 0x4060c0
push ebx
jmp 0x4060bb
lea eax, [ebp - 0x48]
mov edx, ebx
push eax
call fcn.004061c0
add esp, 4
mov ecx, edi
cmp dword [ebp - 0x40], 5
jne 0x4060b7
push dword [ebp - 0x48]
call fcn.00485180
jmp 0x4060c0
lea eax, [ebp - 0x48]
push eax
call fcn.004842b0
cmp byte [ebp + 0xb], 0
je 0x4060cf
push 0xa
mov ecx, edi
call fcn.00485240
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
inc ebx
inc ecx
inc esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ecx
test edi, edi
jne 0x405f80
mov edi, 1
mov eax, dword [0x4e9e24]
sub eax, 0xc
mov dword [0x4e9e24], eax
cmp eax, dword [0x4e9e20]
jb 0x40610f
mov eax, dword [eax]
mov dword [0x4e9e34], eax
mov dword [0x4ea500], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jle 0x406146
mov esi, dword [ebp - 0x34]
add esi, 0x14
nop dword [eax]
cmp dword [esi - 0xc], 5
jne 0x40612f
mov eax, dword [esi - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
test eax, eax
je 0x40613e
push eax
call fcn.0049f942
add esp, 4
add esi, 0x20
sub ebx, 1
jne 0x406120
test edi, edi
setne al
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc