Function at 0x405600
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.00462c00
test al, al
je 0x405636
cmp esi, dword [ebx + 0x24]
jge 0x405644
push dword [ebx + 0x1c]
mov ecx, edi
push str.Too_few_parameters_passed_to_function.
call fcn.0040dd80
xor al, al
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x4effcc]
cmp ecx, dword [0x4effd0]
jne 0x40565d
call fcn.0040735c
mov ecx, dword [0x4effcc]
cmp ecx, dword [0x4effc8]
jb 0x405672
mov eax, dword [0x4f068c]
mov dword [ecx], eax
mov ecx, dword [0x4effcc]
add ecx, 0xc
mov dword [0x4effcc], ecx
mov dword [ecx], 0
mov dword [ecx + 4], ebx
mov dword [ecx + 8], 1
mov al, byte [ebx + 0x3d]
test al, al
jne 0x40569b
mov dword [ebp - 0x34], 0
jmp 0x4056a9
movzx eax, al
shl eax, 5
call fcn.004baba0
mov dword [ebp - 0x34], esp
movzx eax, byte [ebx + 0x3e]
shl eax, 2
mov dword [ebp - 0x30], 0
call fcn.004baba0
mov edx, dword [ebx + 0x34]
xor eax, eax
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x20], eax
test edx, edx
je 0x405718
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, dword [eax + 8]
cmp ecx, 5
je 0x4056f7
cmp ecx, 4
jne 0x405774
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x4056f1
mov ecx, dword [eax + 0xc]
call fcn.004053d0
test byte [eax + 0x15], 0x40
je 0x405774
mov esi, dword [eax]
test esi, esi
je 0x405771
mov eax, dword [esi]
mov ecx, esi
push edx
mov eax, dword [eax + 0x28]
call eax
test al, al
je 0x405771
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 + 0x38]
mov ebx, eax
mov byte [ebp - 2], 0
mov dword [ebp - 0x18], 0xffffffff
mov cl, byte [ecx + 0x3e]
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 0x405c19
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 0x4057fd
mov edi, dword [ebp - 0x18]
jne 0x4057d5
mov cl, 1
jmp 0x4057e4
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x34]
lea eax, [ebp + 8]
push eax
push str.__Class
call fcn.0047dec0
test eax, eax
je 0x4057a8
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4057a1
cmp ecx, 6
je 0x40579a
cmp ecx, 0x4c
jne 0x4057a8
mov ecx, 0x4d3ee8
jmp 0x4057ad
mov ecx, dword [eax]
add ecx, 8
jmp 0x4057ad
mov ecx, 0x4d5cd0
mov edx, dword [esi]
call fcn.0040e110
cmp eax, 1
jne 0x4057c7
mov dword [edi + 8], 3
xor edi, edi
jmp 0x405fce
mov dword [edi + 0x1c], 0
xor edi, edi
jmp 0x405fce
cmp bl, 0x82
jne 0x4057de
mov bh, bl
jmp 0x4057e4
cmp bl, 0x81
cmove edi, edx
mov bl, byte [esi + 1]
inc esi
cmp bl, 0x80
jae 0x40576b
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 0x40583f
mov eax, 8
call fcn.004babb6
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 0x405b96
test bh, bh
je 0x405929
test cl, cl
je 0x405873
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
jge 0x405929
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 0x405929
cmp bl, 0xb
jne 0x4058b2
cmp dword [ebp - 0x18], edx
jne 0x405882
mov edi, dword [edi + 0x10]
jmp 0x40588e
mov eax, 0x200
call fcn.004baba0
mov edi, esp
xor eax, eax
mov word [edi], ax
mov eax, 0x10
call fcn.004babb6
mov esi, esp
mov dword [esi + 4], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
jmp 0x405915
cmp bl, 0xd
jne 0x405902
cmp dword [ebp - 0x18], edx
jne 0x4058c0
mov esi, edi
jmp 0x405924
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.004baba0
mov eax, esp
mov dword [esi + 8], 0
mov dword [esi], 0x4d3ee8
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 1
jmp 0x40591b
mov eax, 8
call fcn.004babb6
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 0x405936
mov byte [ebp - 2], bl
jmp 0x405b99
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebp + 0x10]
jge 0x405b88
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + edi*4]
mov esi, dword [edi + 8]
cmp esi, 3
je 0x405b85
inc dword [ebp - 0x14]
test bh, bh
je 0x4059ca
cmp esi, 4
jne 0x40598a
mov eax, dword [edi + 4]
test eax, eax
je 0x405970
cmp eax, 2
je 0x405970
mov eax, dword [edi]
jmp 0x4059ba
mov eax, dword [edi]
cmp byte [eax + 0x17], 0
jne 0x405980
mov ecx, dword [eax + 0xc]
call fcn.004053d0
test byte [eax + 0x15], 0x40
je 0x405993
mov eax, dword [eax]
jmp 0x405995
cmp esi, 5
jne 0x405993
mov eax, dword [edi]
jmp 0x405995
xor eax, eax
push 0
push 0x4eded4
push 0x4ede04
push 0
push eax
call fcn.004bb5d8
add esp, 0x14
test eax, eax
je 0x405bb9
mov edx, dword [ebp - 0x10]
add eax, 8
test eax, eax
je 0x405bb9
inc dword [ebp - 0x1c]
jmp 0x405b96
cmp bl, 0xb
jne 0x405a65
lea eax, [esi - 1]
xor edx, edx
cmp eax, 4
ja case.0x4059dd.3
jmp dword [eax*4 + 0x406038]
mov eax, dword [edi]
cmp byte [eax + 0x17], dl
jne 0x4059f3
mov ecx, dword [eax + 0xc]
call fcn.004053d0
test byte [eax + 0x15], 0x40
je 0x405a17
mov eax, 0x200
call fcn.004baba0
mov edx, esp
mov eax, edx
cmp esi, 5
jne 0x405a10
mov eax, edi
jmp 0x405a2d
mov edx, eax
cmp esi, 4
jne 0x405a4a
mov eax, dword [edi]
cmp byte [eax + 0x17], 0
jne 0x405a27
mov ecx, dword [eax + 0xc]
call fcn.004053d0
test byte [eax + 0x15], 0x40
je 0x405a4c
cmp dword [eax], 0
je 0x405a4c
mov ecx, dword [ebp + 8]
push 0x4d5cd4
push edi
push dword [ebp - 0x28]
call fcn.0040e3d0
mov edi, eax
jmp 0x405fce
mov edx, eax
push 0
mov ecx, edi
call fcn.00456e00
mov esi, dword [ebp - 0xc]
add esp, 4
mov edx, dword [ebp - 0x10]
mov dword [esi], eax
jmp 0x405b96
cmp bl, 0xc
jne 0x405aaa
cmp esi, 5
jne 0x405a73
mov eax, dword [edi]
jmp 0x405a98
cmp esi, 4
jne 0x405bd1
mov eax, dword [edi]
cmp byte [eax + 0x17], 0
jne 0x405a8c
mov ecx, dword [eax + 0xc]
call fcn.004053d0
test byte [eax + 0x15], 0x40
je 0x405a96
mov eax, dword [eax]
jmp 0x405a98
xor eax, eax
mov esi, dword [ebp - 0xc]
mov dword [esi], eax
test eax, eax
je 0x405bd7
jmp 0x405b96
cmp bl, 0xd
jne 0x405ab6
mov dword [eax], edi
jmp 0x405b96
mov ecx, edi
cmp bl, 0xe
jne 0x405acd
call fcn.00456b70
push eax
lea ecx, [ebp - 0x48]
call fcn.00401650
jmp 0x405add
lea edx, [ebp - 0x48]
call fcn.00457190
test eax, eax
je 0x405bef
movzx eax, bl
sub eax, 9
je 0x405b2e
sub eax, 1
je 0x405b02
cmp dword [ebp - 0x40], 2
jne 0x405b44
movsd xmm0, qword [ebp - 0x48]
call fcn.004bb070
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
jmp 0x405b44
cmp dword [ebp - 0x40], 1
jne 0x405b1e
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
call fcn.004bb170
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x48], xmm0
jmp 0x405b44
movsd xmm0, qword [ebp - 0x48]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x48], xmm0
jmp 0x405b44
cmp dword [ebp - 0x40], 1
jne 0x405b44
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
call fcn.004bb170
movsd qword [ebp - 0x48], xmm0
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0xc]
mov edx, esi
test bh, bh
je 0x405b5e
mov eax, 8
call fcn.004babb6
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 0x405b80
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 0x405b99
mov edx, dword [ebp - 0x10]
jmp 0x405b99
mov edi, dword [ebp - 0x14]
test cl, cl
je 0x405c07
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 + 0x3e]
movzx eax, cl
cmp edx, eax
jge 0x405c19
mov ebx, dword [ebp - 0x14]
jmp 0x405750
mov ecx, dword [ebp + 8]
push str.VarRef
push edi
push dword [ebp - 0x28]
call fcn.0040e3d0
mov edi, eax
jmp 0x405fce
mov dword [eax], 0
mov ecx, dword [ebp + 8]
push str.Object
push edi
push dword [ebp - 0x28]
call fcn.0040e3d0
mov edi, eax
jmp 0x405fce
mov ecx, dword [ebp + 8]
push str.Number
push edi
push dword [ebp - 0x28]
call fcn.0040e3d0
mov edi, eax
jmp 0x405fce
mov ecx, dword [ebp + 8]
push 0
push edi
call fcn.0040e390
mov edi, eax
jmp 0x405fce
mov esi, dword [ebp - 0x2c]
movzx eax, byte [esi + 0x3f]
push eax
push dword [esi + 0x30]
movzx eax, cl
push dword [ebp - 0x24]
push eax
call fcn.004a0b20
mov ecx, eax
xor bl, bl
movzx eax, byte [esi + 0x3c]
add esp, 0x10
add eax, 0xfffffffb
mov byte [ebp + 0xb], bl
cmp eax, 0xb
ja case.0x405c4a.9
jmp dword [eax*4 + 0x40604c]
test ecx, ecx
jns 0x405d72
test ecx, 0x20000000
je 0x405d63
test ecx, 0x40000000
je 0x405c99
push 0xa
lea eax, [ebp - 0x50]
and ecx, 0xfffffff
push eax
push ecx
call fcn.004a9051
add esp, 0xc
mov ecx, edi
push eax
push str.Failed
call fcn.0040dd80
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405c4a.9
mov eax, ecx
movzx edx, cx
sar eax, 0x10
and eax, 0x1fff
cmp eax, 0xe
ja case.0x405cb6.1
movzx eax, byte [eax + 0x406090]
jmp dword [eax*4 + 0x40607c]
mov bl, 1
mov dword [edi + 0x1c], 0
mov byte [ebp + 0xb], bl
jmp case.0x405c4a.9
cmp ecx, 0xa00affff
jne 0x405cec
push str.Invalid_parameter_s_.
mov ecx, edi
call fcn.0040dd60
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405c4a.9
mov eax, dword [ebp - 0x20]
add eax, edx
cmp eax, dword [ebp + 0x10]
jge 0x405d0f
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4]
mov ecx, edi
push eax
push edx
call fcn.0040e390
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405c4a.9
xor eax, eax
mov ecx, edi
push eax
push edx
call fcn.0040e390
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405c4a.9
test edx, edx
jne 0x405d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
push edx
mov ecx, edi
call fcn.0040dff0
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405c4a.9
mov ecx, edi
sub edx, 1
je 0x405d57
push str.Failed
call fcn.0040dd60
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405c4a.9
call fcn.0040de90
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405c4a.9
push ecx
mov ecx, edi
call fcn.0040dff0
mov bl, 1
mov byte [ebp + 0xb], bl
jmp case.0x405c4a.9
cmp ecx, 0x20000000
sete bl
mov byte [ebp + 0xb], bl
jmp case.0x405c4a.9
mov dword [edi + 0x1c], ecx
jmp case.0x405c4a.9
push ecx
jmp 0x405da8
mov dword [edi + 8], 1
mov dword [edi], ecx
mov dword [edi + 4], edx
jmp case.0x405c4a.9
push ecx
mov ecx, edi
call fcn.004052e0
jmp case.0x405c4a.9
xor eax, eax
test ecx, ecx
setne al
push eax
mov ecx, edi
call fcn.00401650
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x405e0c
mov cl, byte [ebp - 2]
cmp cl, 0xb
jne 0x405df8
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4]
cmp dword [eax + 8], 0
je 0x405de1
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 0x405e0c
mov ecx, dword [eax]
test ecx, ecx
je 0x405e0c
mov eax, dword [eax + 0xc]
mov dword [edi + 8], 0
mov dword [edi], ecx
mov dword [edi + 4], eax
jmp 0x405e0c
cmp cl, 0xd
je 0x405e0c
mov edx, dword [ebp - 0x24]
push edi
mov edx, dword [edx + eax*4]
call fcn.004060a0
add esp, 4
test bl, bl
je 0x405e49
cmp dword [edi + 8], 5
jne 0x405e1e
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x405e2e
push eax
call fcn.004a45b2
add esp, 4
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
mov dword [edi], 0x4d3ee8
mov dword [edi + 4], 0
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
mov edi, dword [ebp - 0x1c]
mov esi, dword [esi + 0x38]
mov dword [ebp - 0x14], ecx
test edi, edi
je 0x405fc9
nop
mov dl, byte [esi]
xor al, al
cmp dl, 0x80
jb 0x405e8a
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 0x405e70
mov ecx, dword [ebp - 0x14]
cmp ebx, dword [ebp - 0x18]
jne 0x405e95
dec ecx
jmp 0x405fb8
test al, al
je 0x405fb8
cmp ecx, dword [ebp + 0x10]
jge 0x405fb8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 8]
cmp ecx, 3
je 0x405fb5
dec dword [ebp - 0x1c]
cmp ecx, 4
jne 0x405f08
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x405ed0
cmp ecx, 2
je 0x405ed0
mov edi, dword [eax]
jmp 0x405f13
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x405ee0
mov ecx, dword [eax + 0xc]
call fcn.004053d0
test byte [eax + 0x15], 0x40
jne 0x405f0d
xor eax, eax
push 0
push 0x4eded4
push 0x4ede04
push 0
push eax
call fcn.004bb5d8
add esp, 0x14
test eax, eax
je 0x405f11
lea edi, [eax + 8]
jmp 0x405f13
cmp ecx, 5
jne 0x405ee6
mov eax, dword [eax]
jmp 0x405ee8
xor edi, edi
mov eax, dword [ebp - 0x24]
mov cl, byte [esi]
mov ebx, dword [eax + ebx*4]
cmp cl, 0xb
jne 0x405f54
mov eax, dword [ebx]
test eax, eax
jne 0x405f33
push eax
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.0048a0f0
jmp 0x405fa0
cmp dword [ebx + 8], 0
mov ecx, dword [ebx + 0xc]
je 0x405f47
push ecx
push eax
mov ecx, edi
call fcn.0048a800
jmp 0x405fa0
push 0
push ecx
push eax
mov ecx, edi
call fcn.0048a0f0
jmp 0x405fa0
cmp cl, 0xd
jne 0x405f77
cmp dword [ebx + 0x14], 0
mov ecx, edi
je 0x405f74
push dword [ebx + 4]
push dword [ebx]
call fcn.0048a800
mov dword [ebx + 0x14], 0
jmp 0x405fa0
push ebx
jmp 0x405f9b
lea eax, [ebp - 0x48]
mov edx, ebx
push eax
call fcn.004060a0
add esp, 4
mov ecx, edi
cmp dword [ebp - 0x40], 5
jne 0x405f97
push dword [ebp - 0x48]
call fcn.0048a540
jmp 0x405fa0
lea eax, [ebp - 0x48]
push eax
call fcn.00489650
cmp byte [ebp + 0xb], 0
je 0x405faf
push 0xa
mov ecx, edi
call fcn.0048a600
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 0x405e60
mov edi, 1
mov eax, dword [0x4effcc]
sub eax, 0xc
mov dword [0x4effcc], eax
cmp eax, dword [0x4effc8]
jb 0x405fef
mov eax, dword [eax]
mov dword [0x4effdc], eax
mov dword [0x4f068c], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jle 0x406026
mov esi, dword [ebp - 0x34]
add esi, 0x14
nop dword [eax]
cmp dword [esi - 0xc], 5
jne 0x40600f
mov eax, dword [esi - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
test eax, eax
je 0x40601e
push eax
call fcn.004a45b2
add esp, 4
add esi, 0x20
sub ebx, 1
jne 0x406000
test edi, edi
setne al
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc