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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2c4d
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x70], ebx
mov ecx, dword [ebx + 0x18]
call fcn.0040d9d0
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
cmp ecx, 2
jne 0x40fb6d
test eax, eax
jne 0x40fb6d
mov ecx, dword [ebx + 0x18]
call fcn.0040d9d0
or eax, edx
je 0x40fb5b
mov ecx, dword [ebx + 0x18]
call fcn.0040d990
mov ecx, dword [ebx + 0x18]
call fcn.0040d9d0
or eax, edx
jne 0x40fb47
mov ecx, dword [ebx + 0x18]
call fcn.0040d9d0
mov ecx, eax
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 4
mov dword [ebp - 0x6c], vtable.CObjectVector_class_CBuffer_unsigned_char__.0
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp ecx, 3
jne 0x40fc10
test eax, eax
jne 0x40fc10
push dword [ebp + 0x10]
lea eax, [ebp - 0x6c]
mov ecx, ebx
push dword [ebp + 0xc]
lea esi, [edi + 0x150]
push eax
push esi
push dword [edi + 0x144]
push dword [edi + 0x140]
call fcn.0040f2b0
mov dword [ebp + 0x10], eax
test eax, eax
je 0x40fbed
lea ecx, [ebp - 0x6c]
call fcn.004111d0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x140]
add dword [esi], eax
mov eax, dword [edi + 0x144]
adc dword [esi + 4], eax
mov ecx, dword [ebx + 0x18]
call fcn.0040d9d0
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 8
mov dword [ebp - 0x58], vtable.CRecordVector_unsigned_long_long_unsigned___int64__.0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x44], vtable.CRecordVector_bool_.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x30], vtable.CRecordVector_unsigned_int_.0
mov byte [ebp - 4], 3
mov edx, 8
mov dword [ebp - 0xf0], edx
cmp ecx, 4
jne 0x40fce4
test eax, eax
jne 0x40fce4
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x3c]
push eax
lea eax, [edi + 0x28]
push eax
lea eax, [edi + 0x14]
push eax
push edi
lea esi, [edi + 0x148]
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.0040ef50
mov eax, dword [edi + 0x140]
add dword [esi], eax
mov eax, dword [edi + 0x144]
adc dword [esi + 4], eax
mov ecx, dword [ebx + 0x18]
call fcn.0040d9d0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
jmp 0x40fe2d
xor esi, esi
mov dword [ebp + 0xc], esi
cmp dword [edi + 0x44], esi
jle 0x40fe2d
jmp 0x40fcf9
mov edx, 8
mov ecx, dword [edi + 0x54]
cmp dword [edi + 0x58], ecx
jne 0x40fd23
mov eax, 1
cmp ecx, 0x40
jl 0x40fd12
mov eax, ecx
shr eax, 2
jmp 0x40fd18
cmp ecx, 8
cmovge eax, edx
add eax, ecx
lea ecx, [edi + 0x50]
push eax
call fcn.00427d70
mov ecx, dword [edi + 0x58]
mov eax, dword [edi + 0x5c]
mov dword [eax + ecx*4], 1
inc dword [edi + 0x58]
mov eax, dword [edi + 0x48]
mov eax, dword [eax + esi*4]
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.00406b80
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x54]
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x10], edx
cmp ecx, esi
jne 0x40fd7e
mov ecx, 1
cmp esi, 0x40
jl 0x40fd64
mov ecx, esi
shr ecx, 2
jmp 0x40fd6f
cmp esi, 8
mov eax, 8
cmovge ecx, eax
lea eax, [esi + ecx]
push eax
lea ecx, [ebp - 0x58]
call fcn.00427d70
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x1c]
mov dword [eax + ecx*8], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*8 + 4], edx
inc dword [ebp - 0x50]
mov al, byte [esi + 0x54]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov byte [ebp + 0x13], al
cmp edx, ecx
jne 0x40fdce
mov eax, 1
cmp ecx, 0x40
jl 0x40fdb5
mov eax, ecx
shr eax, 2
jmp 0x40fdc0
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
lea ecx, [ebp - 0x44]
push eax
call fcn.00427d70
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp + 0x13]
mov byte [eax + edx], cl
inc dword [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [esi + 0x50]
cmp edx, ecx
jne 0x40fe11
mov eax, 1
cmp ecx, 0x40
jl 0x40fdf8
mov eax, ecx
shr eax, 2
jmp 0x40fe03
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
lea ecx, [ebp - 0x30]
push eax
call fcn.00427d70
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [eax + edx*4], esi
mov esi, dword [ebp + 0xc]
inc dword [ebp - 0x28]
inc esi
mov dword [ebp + 0xc], esi
cmp esi, dword [edi + 0x44]
jl 0x40fcf4
mov ebx, dword [ebp - 0x70]
push dword [edi + 0x6c]
mov eax, dword [edi + 0x64]
lea ecx, [edi + 0x64]
push 0
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
or eax, ecx
jne 0x40ff16
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
push dword [ebp - 0x28]
mov dword [ebp - 0x30], vtable.CBaseRecordVector.0
push eax
call fcn.00427ea0
push dword [ebp - 0x24]
call fcn.004a5d88
add esp, 4
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
push dword [ebp - 0x3c]
mov dword [ebp - 0x44], vtable.CBaseRecordVector.0
push 0
call fcn.00427ea0
push dword [ebp - 0x38]
call fcn.004a5d88
add esp, 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
push dword [ebp - 0x50]
mov dword [ebp - 0x58], vtable.CBaseRecordVector.0
push 0
call fcn.00427ea0
push dword [ebp - 0x4c]
call fcn.004a5d88
add esp, 4
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x64]
mov dword [ebp - 0x6c], vtable.CObjectVector_class_CBuffer_unsigned_char__.0
push 0
call fcn.00411130
mov byte [ebp - 4], 8
jmp 0x410801
cmp edx, 5
jne 0x4105ca
test ecx, ecx
jne 0x4105ca
mov ecx, dword [ebx + 0x18]
call fcn.0040daa0
push eax
lea ecx, [edi + 0x64]
mov dword [ebp + 0x10], eax
call fcn.00427d70
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40ffa6
mov esi, eax
push 3
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
call fcn.004037f0
mov dword [ebp - 0xc0], 1
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 9
push eax
lea ecx, [edi + 0x64]
call fcn.004112f0
mov byte [ebp - 4], 3
push dword [ebp - 0xcc]
call fcn.004a5d88
add esp, 4
sub esi, 1
jne 0x40ff44
mov ebx, dword [ebp - 0x70]
mov ecx, dword [edi + 0x15c]
lea esi, [edi + 0x158]
cmp dword [esi + 8], ecx
jne 0x40ffdd
mov eax, 1
cmp ecx, 0x40
jl 0x40ffc8
mov eax, ecx
shr eax, 2
jmp 0x40ffd3
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
mov ecx, esi
push eax
call fcn.00427d70
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ecx + eax*8], 9
mov dword [ecx + eax*8 + 4], 0
inc dword [esi + 8]
cmp dword [edi + 8], 0
je 0x410041
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
jne 0x410029
mov eax, 1
cmp ecx, 0x40
jl 0x410014
mov eax, ecx
shr eax, 2
jmp 0x41001f
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
mov ecx, esi
push eax
call fcn.00427d70
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ecx + eax*8], 6
mov dword [ecx + eax*8 + 4], 0
inc dword [esi + 8]
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x410097
cmp dword [ebp - 0x28], 0
je 0x410097
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
jne 0x41007f
mov eax, 1
cmp ecx, 0x40
jl 0x410067
mov eax, ecx
shr eax, 2
jmp 0x410072
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
mov ecx, esi
push eax
call fcn.00427d70
mov edx, dword [ebp + 0x10]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ecx + eax*8], 0xa
mov dword [ecx + eax*8 + 4], 0
inc dword [esi + 8]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x84], vtable.CRecordVector_bool_.0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xa
call fcn.0040d1d0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xbc], vtable.CRecordVector_bool_.0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x98], vtable.CRecordVector_bool_.0
mov byte [ebp - 4], 0xc
xor esi, esi
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 0x14], esi
call fcn.0040d9d0
mov ecx, eax
mov dword [ebp - 0x1c], eax
or ecx, edx
mov dword [ebp - 0x10], edx
je 0x410547
mov ecx, dword [ebx + 0x18]
call fcn.0040d9d0
cmp dword [ebp - 0x10], 0
mov ecx, dword [ebx + 0x18]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ecx + 8]
mov dword [ebp - 0xec], eax
ja case.0x410191.22
mov eax, dword [ebp - 0x1c]
jb 0x410185
cmp eax, 0x40000000
ja case.0x410191.22
add eax, 0xfffffff2
cmp eax, 0xb
ja case.0x410191.22
jmp dword [eax*4 + 0x410838]
mov byte [ebp - 0x9c], 0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 0xd
push eax
push ebx
lea ecx, [ebp - 0xa0]
call fcn.0040d900
xor esi, esi
cmp dword [edi + 0x6c], esi
jle 0x4101d8
nop word [eax + eax]
mov eax, dword [edi + 0x70]
mov ecx, dword [ebx + 0x18]
mov eax, dword [eax + esi*4]
add eax, 0x10
push eax
call fcn.0040dad0
inc esi
cmp esi, dword [edi + 0x6c]
jl 0x4101c0
mov byte [ebp - 4], 0xe
cmp byte [ebp - 0x9c], 0
je 0x410217
mov esi, dword [ebp - 0xa0]
push 1
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
mov edx, dword [esi + 4]
dec eax
push eax
call dword [edx + 4]
mov edx, esi
cmp dword [edx + 0xc], 0
je 0x410210
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x18], eax
mov byte [ebp - 0x9c], 0
mov byte [ebp - 4], 0xc
jmp 0x410401
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 1
mov dword [ebp - 0xd0], vtable.CRecordVector_bool_.0
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0xf
push eax
push dword [edi + 0x6c]
mov ecx, ebx
call fcn.0040f0b0
mov byte [ebp - 0xa4], 0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 0x10
push eax
push ebx
lea ecx, [ebp - 0xa8]
call fcn.0040d900
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jbe 0x4102e1
nop dword [eax]
mov eax, dword [edi + 0x70]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xe0], edx
mov al, byte [eax + ecx]
mov byte [edx + 0x1f], al
test al, al
je 0x4102db
mov edx, dword [ebx + 0x18]
mov esi, dword [edx + 8]
lea eax, [esi + 4]
mov dword [ebp - 0xe8], eax
cmp eax, dword [edx + 4]
ja 0x4105c5
mov eax, dword [edx]
mov eax, dword [esi + eax]
mov esi, dword [ebp - 0xe8]
mov dword [edx + 8], esi
mov edx, dword [ebp - 0xe0]
mov dword [edx + 8], eax
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x410290
mov byte [ebp - 4], 0x11
cmp byte [ebp - 0xa4], 0
je 0x410320
mov esi, dword [ebp - 0xa8]
push 1
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
mov edx, dword [esi + 4]
dec eax
push eax
call dword [edx + 4]
mov edx, esi
cmp dword [edx + 0xc], 0
je 0x410319
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x18], eax
mov byte [ebp - 0xa4], 0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xd0]
push dword [ebp - 0xc8]
mov dword [ebp - 0xd0], vtable.CBaseRecordVector.0
push 0
call fcn.00427ea0
push dword [ebp - 0xc4]
call fcn.004a5d88
add esp, 4
mov byte [ebp - 4], 0xc
jmp 0x410401
lea eax, [ebp - 0x84]
mov ecx, ebx
push eax
push dword [ebp + 0x10]
call fcn.0040f000
mov edx, dword [ebp - 0x7c]
xor ecx, ecx
test edx, edx
je 0x410399
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x14]
nop dword [eax + eax]
cmp byte [esi + ecx], 0
lea eax, [edi + 1]
cmove eax, edi
inc ecx
mov edi, eax
cmp ecx, edx
jb 0x410380
mov dword [ebp - 0x14], edi
mov esi, eax
mov edi, dword [ebp + 8]
mov edx, esi
lea ecx, [ebp - 0xbc]
call fcn.0040d1d0
mov edx, esi
lea ecx, [ebp - 0x98]
call fcn.0040d1d0
jmp 0x410401
lea eax, [ebp - 0xbc]
mov ecx, ebx
push eax
push esi
call fcn.0040f000
jmp 0x410401
lea eax, [ebp - 0x98]
mov ecx, ebx
push eax
push esi
call fcn.0040f000
jmp 0x410401
lea eax, [edi + 0xf0]
jmp 0x4103f2
lea eax, [edi + 0x78]
jmp 0x4103f2
lea eax, [edi + 0xa0]
jmp 0x4103f2
lea eax, [edi + 0xc8]
push dword [ebp + 0x10]
mov ecx, ebx
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0040f160
mov ecx, dword [edi + 0x15c]
lea esi, [edi + 0x158]
cmp dword [esi + 8], ecx
jne 0x410438
mov eax, 1
cmp ecx, 0x40
jl 0x410423
mov eax, ecx
shr eax, 2
jmp 0x41042e
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
mov ecx, esi
push eax
call fcn.00427d70
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + eax*8], edx
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*8 + 4], edx
inc dword [esi + 8]
mov esi, dword [ebp - 0x14]
jmp 0x4104f3
xorps xmm0, xmm0
movlpd qword [ebp - 0xe4], xmm0
test edx, edx
jb 0x4104f6
ja 0x410476
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4104f9
mov eax, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0xe4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x70]
mov edx, dword [eax + 0x18]
mov esi, dword [edx + 8]
cmp esi, dword [edx + 4]
jae 0x4105c5
mov eax, dword [edx]
mov cl, byte [esi + eax]
lea eax, [esi + 1]
mov dword [edx + 8], eax
test cl, cl
jne 0x4105ca
mov eax, dword [ebp - 0x10]
add ebx, 1
mov edx, dword [ebp - 0x18]
adc eax, 0
mov dword [ebp - 0x10], eax
cmp eax, edx
jb 0x410485
mov ecx, dword [ebp + 0xc]
ja 0x4104c6
cmp ebx, ecx
jb 0x410485
mov ebx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x14]
jmp 0x4104f9
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
sub eax, edx
cmp dword [ebp - 0x18], 0
ja 0x4105c5
jb 0x4104eb
cmp dword [ebp + 0xc], eax
ja 0x4105c5
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
cmp byte [edi + 0x130], 0
ja 0x41050b
cmp byte [edi + 0x131], 2
jbe 0x41052f
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], 0
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0xec]
cmp eax, ecx
jne 0x4105ca
cmp dword [ebp + 0xc], edx
jne 0x4105ca
mov ecx, dword [ebx + 0x18]
call fcn.0040d9d0
mov ecx, edx
mov dword [ebp - 0x1c], eax
or eax, ecx
mov dword [ebp - 0x10], ecx
jne 0x410151
xor edx, edx
mov dword [ebp + 0xc], 0
xor ebx, ebx
mov dword [ebp - 0x10], edx
xor ecx, ecx
test esi, esi
je 0x410577
mov edi, dword [ebp - 0x8c]
cmp byte [edi + ecx], bl
lea eax, [edx + 1]
cmove eax, edx
inc ecx
mov edx, eax
cmp ecx, esi
jb 0x410561
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], edx
xor esi, esi
cmp dword [ebp + 0x10], ebx
jbe 0x410662
mov eax, dword [edi + 0x70]
mov edx, dword [eax + esi*4]
mov eax, dword [ebp - 0x78]
cmp byte [eax + esi], 0
sete al
mov byte [edx + 0x1c], al
test al, al
je 0x4105cf
mov byte [edx + 0x1d], 0
mov ecx, dword [ebp - 0x4c]
mov byte [ebp + 0xb], 0
mov eax, dword [ecx + ebx*8]
mov dword [edx], eax
mov eax, dword [ecx + ebx*8 + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + ebx*4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x38]
mov al, byte [eax + ebx]
inc ebx
mov byte [edx + 0x1e], al
jmp 0x410603
call fcn.0040d7a0
call fcn.0040d7a0
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp + 0xc]
cmp byte [eax + ecx], 0
sete al
mov byte [edx + 0x1d], al
mov eax, dword [ebp - 0x8c]
mov al, byte [eax + ecx]
inc ecx
mov byte [ebp + 0xb], al
mov dword [ebp + 0xc], ecx
mov dword [edx], 0
mov dword [edx + 4], 0
mov byte [edx + 0x1e], 0
cmp dword [ebp - 0x10], 0
je 0x410658
mov ecx, dword [edi + 0x11c]
cmp dword [edi + 0x120], ecx
jne 0x410640
mov eax, 1
cmp ecx, 0x40
jl 0x410628
mov eax, ecx
shr eax, 2
jmp 0x410632
cmp ecx, 8
cmovge eax, dword [ebp - 0xf0]
add eax, ecx
lea ecx, [edi + 0x118]
push eax
call fcn.00427d70
mov eax, dword [edi + 0x120]
mov ecx, dword [edi + 0x124]
mov dl, byte [ebp + 0xb]
mov byte [ecx + eax], dl
inc dword [edi + 0x120]
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x410582
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x98]
push dword [ebp - 0x90]
mov dword [ebp - 0x98], vtable.CBaseRecordVector.0
push 0
call fcn.00427ea0
push dword [ebp - 0x8c]
call fcn.004a5d88
add esp, 4
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xbc]
push dword [ebp - 0xb4]
mov dword [ebp - 0xbc], vtable.CBaseRecordVector.0
push 0
call fcn.00427ea0
push dword [ebp - 0xb0]
call fcn.004a5d88
add esp, 4
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x84]
push dword [ebp - 0x7c]
mov dword [ebp - 0x84], vtable.CBaseRecordVector.0
push 0
call fcn.00427ea0
push dword [ebp - 0x78]
call fcn.004a5d88
add esp, 4
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x30]
push dword [ebp - 0x28]
mov dword [ebp - 0x30], vtable.CBaseRecordVector.0
push 0
call fcn.00427ea0
push dword [ebp - 0x24]
call fcn.004a5d88
add esp, 4
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x44]
push dword [ebp - 0x3c]
mov dword [ebp - 0x44], vtable.CBaseRecordVector.0
push 0
call fcn.00427ea0
push dword [ebp - 0x38]
call fcn.004a5d88
add esp, 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x58]
push dword [ebp - 0x50]
mov dword [ebp - 0x58], vtable.CBaseRecordVector.0
push 0
call fcn.00427ea0
push dword [ebp - 0x4c]
call fcn.004a5d88
add esp, 4
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0x19
mov dword [ebp - 0x6c], vtable.CObjectVector_class_CBuffer_unsigned_char__.0
push dword [ebp - 0x64]
lea ecx, [ebp - 0x6c]
push 0
call fcn.00411130
mov byte [ebp - 4], 0x1a
push dword [ebp - 0x64]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], vtable.CBaseRecordVector.0
push 0
call fcn.00427ea0
push dword [ebp - 0x60]
call fcn.004a5d88
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc