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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4472a0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4630d8]
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.00419a40
lea ecx, [esp + 0x1c]
mov dword [esp + 0x70], ebx
call fcn.0040ed50
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 0x41596f
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 0x41596f
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
push eax
lea ecx, [esp + 0x40]
call fcn.004199e0
mov ebx, eax
test ebx, ebx
jne 0x41596f
push 0xea
lea ecx, [esp + 0x40]
call fcn.00419980
mov ebx, eax
test ebx, ebx
jne 0x41596f
push eax
lea ecx, [esp + 0x40]
call fcn.00419980
mov ebx, eax
test ebx, ebx
jne 0x41596f
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 0x415822
add dword [esp + 0x10], 1
cmp eax, 0xc8
je 0x415822
cmp dword [esp + 0x10], 0x100
jge 0x415822
test eax, eax
je 0x4157e2
push 0xae
lea ecx, [esp + 0x40]
call fcn.00419980
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x41586d
mov byte [esp + 0x70], bl
lea ecx, [esp + 0x1c]
call fcn.0040ed80
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], 0xffffffff
call fcn.00419770
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.00419d40
mov edi, eax
cmp edi, ebx
jne 0x415838
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x40]
call fcn.00419980
mov edi, eax
cmp edi, ebx
jne 0x415838
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 0x4158e7
xor ecx, ecx
jmp 0x4158ea
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x34]
push edx
push eax
push ecx
mov byte [esp + 0x84], 2
call fcn.0041e1a0
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 0x415935
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 1
call fcn.0040a5a0
mov byte [esp + 0x70], 0
jmp 0x41583c
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 0x4159a5
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 1
call fcn.0040a5a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0
call fcn.0040ed80
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], 0xffffffff
call fcn.00419770
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 0x41591d
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.0040a5a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0
call fcn.0040ed80
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], 0xffffffff
call fcn.00419770
test esi, esi
je 0x415a12
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