Function at 0x405840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c56b
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x4c4330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
cmp byte [ebx + 0x110], 0
jne 0x405e3b
mov eax, dword [ebx + 0x24]
cmp eax, esi
jne 0x40592b
cmp byte [ebx + 0x48], 0
jne 0x40589c
push 0x4b7b58
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 1
call fcn.00488dda
cmp dword [ebx + 0x38], esi
je 0x4058b6
mov dword [ebp - 0x20], 1
push 0x4b7b58
lea ecx, [ebp - 0x20]
push ecx
call fcn.00488dda
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x50], vtable.CObjectVector_struct_CProp_.0
mov dword [ebp - 4], esi
mov edi, 1
lea edx, [ebx + 0x1c]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x58], 0x6f10701
mov dword [ebp - 0x54], esi
call fcn.004064d0
mov edx, edi
push edx
lea eax, [ebx + 0x58]
push edi
call fcn.004030f0
lea eax, [ebx + 0x80]
push esi
call fcn.00411c70
lea eax, [ebx + 0x94]
push esi
call fcn.00411c70
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.00405e70
jmp 0x405dc0
xor ecx, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ecx
cmp eax, esi
jle 0x405a4a
mov edi, edi
cmp dword [ebx + 0x38], 0
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + ecx*4]
mov esi, dword [eax + 0x24]
mov edi, dword [eax + 0x20]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
jne 0x4059f0
mov eax, dword [ebx + 0x24]
dec eax
cmp ecx, eax
jge 0x405978
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
add ecx, esi
push edx
lea eax, [ebx + 0x6c]
push ecx
call fcn.004030f0
jmp 0x405990
lea ecx, [ebx + 0x94]
xor eax, eax
call fcn.00447080
mov eax, dword [ebx + 0xa0]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, 1
mov dword [ebp - 0x20], eax
cmp edi, eax
jbe 0x4059f0
lea esi, [ebx + 0x94]
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
jne 0x4059d0
mov eax, 1
cmp ecx, 0x40
jl 0x4059bb
mov eax, ecx
shr eax, 2
jmp 0x4059c5
cmp ecx, 8
jl 0x4059c5
mov eax, 8
lea edi, [ecx + eax]
call fcn.00446fd0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov edi, dword [esi + 0xc]
lea ecx, [eax + edx]
mov edx, dword [esi + 8]
mov dword [edi + edx*4], ecx
mov edi, dword [ebp - 0x28]
inc dword [esi + 8]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, edi
jb 0x4059a2
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebx + 0x5c]
add dword [ebp - 0x1c], esi
add dword [ebp - 0x18], edi
cmp dword [ebx + 0x60], eax
jne 0x405a2a
mov ecx, 1
cmp eax, 0x40
jl 0x405a0f
mov ecx, eax
shr ecx, 2
jmp 0x405a19
cmp eax, 8
jl 0x405a19
mov ecx, 8
lea edi, [eax + ecx]
lea esi, [ebx + 0x58]
call fcn.00446fd0
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x64]
mov dword [eax + ecx*8], esi
mov dword [eax + ecx*8 + 4], edi
mov ecx, dword [ebp - 0x14]
inc dword [ebx + 0x60]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebx + 0x24]
jl 0x405940
mov eax, dword [ebx + 0x38]
xor ecx, ecx
cmp eax, ecx
je 0x405b7a
mov dword [ebp - 0x14], ecx
jle 0x405aff
lea esi, [ebx + 0x6c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebx + 0x3c]
add edx, dword [ebp - 0x20]
xor eax, eax
mov edi, dword [edx]
test edi, edi
je 0x405a7f
mov ecx, dword [ebx + 0x64]
add eax, dword [ecx]
add ecx, 8
dec edi
jne 0x405a77
mov edi, dword [edx + 4]
add edi, eax
xor ecx, ecx
mov dword [ebp - 0x2c], edi
cmp dword [edx + 8], ecx
jbe 0x405aa2
mov eax, dword [ebx + 0x64]
mov edi, dword [edx + 8]
add eax, 4
add ecx, dword [eax]
add eax, 8
dec edi
jne 0x405a97
mov edi, dword [ebp - 0x2c]
mov edx, dword [edx + 0xc]
mov eax, dword [esi + 4]
add edx, ecx
mov dword [ebp - 0x28], edx
cmp dword [esi + 8], eax
jne 0x405adb
mov ecx, 1
cmp eax, 0x40
jl 0x405ac3
mov ecx, eax
shr ecx, 2
jmp 0x405acd
cmp eax, 8
jl 0x405acd
mov ecx, 8
lea edi, [eax + ecx]
call fcn.00446fd0
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
add dword [ebp - 0x20], 0x10
mov dword [eax + ecx*8], edi
mov dword [eax + ecx*8 + 4], edx
mov eax, dword [ebp - 0x14]
inc dword [esi + 8]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebx + 0x38]
jl 0x405a66
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x18], edi
jle 0x405b7a
mov edx, dword [ebx + 0x74]
xor ecx, ecx
test edx, edx
jle 0x405b2b
mov eax, dword [ebx + 0x78]
add eax, 4
cmp dword [eax], edi
je 0x405b26
inc ecx
add eax, 8
cmp ecx, edx
jl 0x405b18
jmp 0x405b2b
cmp ecx, 0xffffffff
jne 0x405b71
mov eax, dword [ebx + 0x98]
cmp dword [ebx + 0x9c], eax
lea esi, [ebx + 0x94]
jne 0x405b65
mov ecx, 1
cmp eax, 0x40
jl 0x405b50
mov ecx, eax
shr ecx, 2
jmp 0x405b5a
cmp eax, 8
jl 0x405b5a
mov ecx, 8
lea edi, [eax + ecx]
call fcn.00446fd0
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ecx + eax*4], edi
inc dword [esi + 8]
inc edi
mov dword [ebp - 0x14], edi
cmp edi, dword [ebp - 0x18]
jl 0x405b09
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x1c], edi
jle 0x405bf2
mov edx, dword [ebx + 0x74]
xor eax, eax
test edx, edx
jle 0x405ba3
mov ecx, dword [ebx + 0x78]
cmp dword [ecx], edi
je 0x405b9e
inc eax
add ecx, 8
cmp eax, edx
jl 0x405b90
jmp 0x405ba3
cmp eax, 0xffffffff
jne 0x405be9
mov eax, dword [ebx + 0x84]
cmp dword [ebx + 0x88], eax
lea esi, [ebx + 0x80]
jne 0x405bdd
mov ecx, 1
cmp eax, 0x40
jl 0x405bc8
mov ecx, eax
shr ecx, 2
jmp 0x405bd2
cmp eax, 8
jl 0x405bd2
mov ecx, 8
lea edi, [eax + ecx]
call fcn.00446fd0
mov edi, dword [ebp - 0x14]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [eax + edx*4], edi
inc dword [esi + 8]
inc edi
mov dword [ebp - 0x14], edi
cmp edi, dword [ebp - 0x1c]
jl 0x405b84
cmp dword [ebx + 0x88], 0
je 0x4058a1
mov edx, dword [ebx + 0x8c]
mov esi, dword [ebx + 0x60]
mov eax, dword [edx]
mov dword [ebp - 0x28], esi
lea ecx, [ecx]
mov ecx, eax
xor edx, edx
cmp edx, esi
jae 0x405e4e
mov eax, dword [ebx + 0x64]
mov eax, dword [eax + edx*8]
cmp ecx, eax
jb 0x405c2b
sub ecx, eax
inc edx
jmp 0x405c14
xor eax, eax
xor esi, esi
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x14], eax
cmp edx, 2
jl 0x405c61
mov eax, dword [ebx + 0x64]
lea ecx, [edx - 2]
shr ecx, 1
add eax, 0xc
inc ecx
lea edi, [ecx + ecx]
mov dword [ebp - 0x24], edi
mov edi, esi
nop
add esi, dword [eax - 8]
add edi, dword [eax]
add eax, 0x10
dec ecx
jne 0x405c50
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp ecx, edx
jae 0x405c6c
mov edx, dword [ebx + 0x64]
mov eax, dword [edx + ecx*8 + 4]
add esi, edi
mov edi, dword [ebx + 0x74]
add esi, eax
xor eax, eax
test edi, edi
jle 0x405c8c
mov edx, dword [ebx + 0x78]
add edx, 4
nop
cmp dword [edx], esi
je 0x405cb2
inc eax
add edx, 8
cmp eax, edi
jl 0x405c80
xor eax, eax
cmp dword [ebx + 0x9c], eax
jle 0x405ced
mov ecx, dword [ebx + 0xa0]
lea esp, [esp]
cmp dword [ecx], esi
je 0x405cc4
inc eax
add ecx, 4
cmp eax, dword [ebx + 0x9c]
jl 0x405ca0
jmp 0x405ced
test eax, eax
js 0x405c8c
mov ecx, dword [ebx + 0x78]
mov eax, dword [ecx + eax*8]
mov esi, dword [ebp - 0x28]
jmp 0x405c10
mov edx, dword [ebx + 0x94]
push 1
push eax
mov eax, dword [edx + 4]
lea ecx, [ebx + 0x94]
call eax
xor eax, eax
lea ecx, [ebx + 0x94]
call fcn.00447080
mov ecx, dword [ebx + 0xa0]
mov dword [ecx], esi
cmp byte [ebx + 0x48], 0
je 0x405dc0
mov edi, dword [ebx + 0x9c]
xor esi, esi
mov dword [ebp - 0x20], edi
test edi, edi
jle 0x405d2e
jmp 0x405d10
mov ecx, dword [ebx + 0xa0]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ecx + esi*4]
lea eax, [esi + edx]
push ecx
push eax
lea eax, [ebx + 0x6c]
call fcn.004030f0
inc esi
cmp esi, edi
jl 0x405d10
mov eax, dword [ebx + 0x9c]
mov edx, dword [ebx + 0x94]
mov edx, dword [edx + 4]
lea ecx, [ebx + 0x94]
push eax
xor edi, edi
push edi
call edx
xor esi, esi
cmp dword [ebp - 0x20], edi
jle 0x405dc0
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x50], vtable.CObjectVector_struct_CProp_.0
mov eax, 1
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x58]
lea edx, [ebx + 0x1c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x58], 0x6f10701
mov dword [ebp - 0x54], edi
call fcn.004064d0
mov eax, 1
push eax
push eax
lea eax, [ebx + 0x58]
call fcn.004030f0
mov eax, dword [ebp - 0x18]
lea ecx, [esi + eax]
push ecx
lea eax, [ebx + 0x94]
call fcn.00411c70
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.00405e70
inc esi
cmp esi, dword [ebp - 0x20]
jl 0x405d50
mov esi, dword [ebx + 0x24]
dec esi
js 0x405de1
mov edx, dword [ebx + 0x28]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebx + 0xfc]
call fcn.004030f0
dec esi
jns 0x405dc6
push 0xa8
call fcn.004861b5
add esp, 4
test eax, eax
jne 0x405e05
xor al, al
mov byte [ebp - 0xd], al
push 0x4b7d84
lea eax, [ebp - 0xd]
push eax
jmp 0x4058b1
mov dword [ebp - 0x28], eax
lea ecx, [ebx + 0x58]
push ecx
push eax
mov dword [ebp - 4], 2
call fcn.0041a550
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xa8]
push ecx
mov dword [ebx + 0xf8], ecx
call fcn.0041a990
mov byte [ebx + 0x110], 1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], 1
push 0x4b7b58
lea ecx, [ebp - 0x28]
jmp 0x4058b0