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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447140
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [eax + 0x94]
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call edx
xor ebx, ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], ebx
call fcn.004199a0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x70], ebx
call fcn.0040ed60
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
push ebx
mov ecx, esi
mov byte [esp + 0x74], 1
call edx
mov ebx, eax
test ebx, ebx
jne 0x41590f
mov ecx, dword [edi + 4]
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
push ecx
mov ecx, esi
call edx
mov ebx, eax
test ebx, ebx
jne 0x41590f
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
push eax
lea ecx, [esp + 0x40]
call fcn.00419970
mov ebx, eax
test ebx, ebx
jne 0x41590f
push 0xea
lea ecx, [esp + 0x40]
call fcn.004198e0
mov ebx, eax
test ebx, ebx
jne 0x41590f
push eax
lea ecx, [esp + 0x40]
call fcn.004198e0
mov ebx, eax
test ebx, ebx
jne 0x41590f
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 0
lea ecx, [esp + 0x44]
add eax, 1
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x24], eax
call edx
cmp eax, 0x6b
je 0x4157c2
add dword [esp + 0x10], 1
cmp eax, 0xc8
je 0x4157c2
cmp dword [esp + 0x10], 0x100
jge 0x4157c2
test eax, eax
je 0x415782
push 0xae
lea ecx, [esp + 0x40]
call fcn.004198e0
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x41580d
mov byte [esp + 0x70], bl
lea ecx, [esp + 0x1c]
call fcn.0040ed90
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], 0xffffffff
call fcn.004196d0
mov eax, edi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push 5
lea ecx, [esp + 0x44]
call fcn.00419ca0
mov edi, eax
cmp edi, ebx
jne 0x4157d8
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x40]
call fcn.004198e0
mov edi, eax
cmp edi, ebx
jne 0x4157d8
mov dword [esp + 0x2c], vtable.CPMemBlock_char_.0
mov dword [esp + 0x30], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov edx, dword [ebp + 0xc]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x7c], 2
call fcn.00401050
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0xb0]
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], 3
call edx
mov ecx, dword [esp + 0x68]
cmp ecx, ebx
mov dword [esp + 0x20], edx
jne 0x415887
xor ecx, ecx
jmp 0x41588a
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x34]
push edx
push eax
push ecx
mov byte [esp + 0x84], 2
call fcn.0041e050
mov ecx, dword [esp + 0x48]
mov eax, dword [esi]
mov edx, dword [esp + 0x4c]
mov eax, dword [eax + 0x84]
add esp, 0x14
push ecx
push edx
mov ecx, esi
call eax
mov edi, eax
cmp edi, ebx
je 0x4158d5
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 1
call fcn.0040a5e0
mov byte [esp + 0x70], 0
jmp 0x4157dc
mov edx, dword [esi]
mov eax, dword [edx + 0x94]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esi]
mov edx, dword [edx + 0xa0]
mov edi, eax
mov eax, dword [esp + 0x24]
push ecx
push eax
mov ecx, esi
sub edi, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x415945
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 1
call fcn.0040a5e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0
call fcn.0040ed90
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], 0xffffffff
call fcn.004196d0
mov eax, ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
add edi, 0xfffffffc
push edi
mov ecx, esi
call edx
mov edi, eax
test edi, edi
jne 0x4158bd
mov eax, dword [esi]
mov edx, dword [eax + 0x90]
mov ecx, esi
call edx
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x70], 1
call fcn.0040a5e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0
call fcn.0040ed90
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], 0xffffffff
call fcn.004196d0
test esi, esi
je 0x4159b2
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8