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

Disassembly:
sub esp, 0x298
push ebx
push ebp
mov ebp, dword [esp + 0x2a4]
mov eax, dword [ebp + 4]
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 0x14]
push edi
mov dword [esp + 0x44], eax
mov eax, dword [eax + 0xc]
lea edi, [eax + eax*2]
push 0x38
shl edi, 4
lea eax, [esp + 0x6c]
push 0
add edi, esi
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], ebx
call sub.MSVCR80.dll_memset
movzx eax, byte [ebx + 0x10]
mov edx, dword [ebp]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 4]
shl ecx, 4
lea eax, [ecx + eax + 8]
mov ecx, dword [eax + 0x30]
add esp, 0xc
cmp esi, edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x18], esi
jae 0x10106f18
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10106f1c
test word [esi + 0x12], 0x200
je 0x10106f03
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x198]
mov edx, dword [eax + 0x19c]
and ecx, dword [ebx + 8]
and edx, dword [ebx + 0xc]
or ecx, edx
je 0x10106f03
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp]
lea edi, [ecx + ecx*2]
mov ecx, dword [ebp + 4]
shl edi, 4
add edi, dword [eax + 0x14]
mov dword [esp + 0x30], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], ecx
mov ebp, dword [eax + 0x14]
cmp ebp, edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], ebp
jae 0x10106e84
test word [ebp + 0x12], 0x400
je 0x10106b84
mov edx, dword [ebp + 0xc]
jmp 0x10106bc6
mov eax, dword [esp + 0x54]
cmp dword [ebp + 8], eax
jne 0x10106e6c
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], eax
mov byte [esp + 0x118], 0x1c
mov dword [esp + 0x11c], 1
mov dword [esp + 0x124], ebp
lea edx, [esp + 0x110]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x34], edx
mov word [esp + 0xa0], 0
mov ecx, dword [eax + 0x10]
test byte [ecx + 0x2a], 0x10
mov ecx, dword [esp + 0x2b4]
je 0x10106c10
mov edx, dword [esp + 0x2bc]
mov eax, dword [esp + 0x2b8]
push edx
mov edx, dword [esp + 0x2b4]
push eax
push ecx
push edx
lea eax, [esp + 0x40]
push eax
call fcn.10106740
add esp, 0x14
jmp 0x10106c26
mov edx, dword [esp + 0x2b0]
push ecx
push edx
lea eax, [esp + 0x38]
push eax
call fcn.10105f60
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10106c5f
mov ecx, dword [esp + 0x2bc]
mov edx, dword [esp + 0x2b8]
mov eax, dword [esp + 0x2b4]
push ecx
mov ecx, dword [esp + 0x2b4]
push edx
push eax
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.10106a70
add esp, 0x14
mov dword [esp + 0x10], eax
mov si, word [esp + 0xa0]
test si, si
je 0x10106e7d
cmp dword [esp + 0x28], 0
je 0x10106ca5
movzx eax, si
shl eax, 4
push eax
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x78]
push edx
mov word [esp + 0x74], si
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov dword [esp + 0x28], 0
jmp 0x10106e6c
mov ax, word [esp + 0x68]
mov word [esp + 0xd8], ax
movzx eax, ax
shl eax, 4
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0xe8]
push edx
call sub.MSVCR80.dll_memcpy
movzx ecx, word [esp + 0xe4]
add esp, 0xc
test ecx, ecx
mov word [esp + 0x68], 0
jle 0x10106e6c
lea edx, [esp + 0xe8]
movzx eax, si
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
jmp 0x10106d00
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x10106e5a
movzx ebx, word [edx]
mov eax, dword [edx - 8]
mov ecx, dword [edx - 4]
movzx ebp, word [edx + 2]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
lea edi, [esp + 0xb0]
movzx ecx, word [edi + 2]
cmp bp, cx
jl 0x10106d6c
movsx ecx, cx
movsx eax, bp
lea edx, [ecx + 0x31]
cmp eax, edx
jle 0x10106d4b
movzx esi, bp
jmp 0x10106d9d
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x10106d5a
lea eax, [ebp + 1]
movzx esi, ax
jmp 0x10106d9d
sub eax, ecx
movzx cx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add cx, bp
movzx esi, cx
jmp 0x10106d9d
movsx edx, bp
movsx eax, cx
lea esi, [edx + 0x31]
cmp eax, esi
jle 0x10106d7e
movzx esi, cx
jmp 0x10106d9d
lea esi, [edx + 0x1f]
cmp eax, esi
jle 0x10106d8d
add ecx, 1
movzx esi, cx
jmp 0x10106d9d
sub eax, edx
movzx dx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add dx, cx
movzx esi, dx
movzx ecx, word [edi]
cmp bx, cx
jl 0x10106dd8
movsx ecx, cx
movsx eax, bx
lea edx, [ecx + 0x31]
cmp eax, edx
jle 0x10106db7
movzx eax, bx
jmp 0x10106e0d
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x10106dc6
lea eax, [ebx + 1]
movzx eax, ax
jmp 0x10106e0d
sub eax, ecx
movzx cx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add cx, bx
movzx eax, cx
jmp 0x10106e0d
movsx edx, bx
movsx eax, cx
lea ebx, [edx + 0x31]
cmp eax, ebx
jle 0x10106dea
movzx eax, cx
jmp 0x10106e09
lea ebx, [edx + 0x1f]
cmp eax, ebx
jle 0x10106df9
add ecx, 1
movzx eax, cx
jmp 0x10106e09
sub eax, edx
movzx dx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add dx, cx
movzx eax, dx
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi - 4]
or ecx, dword [esp + 0x4c]
push esi
push eax
mov eax, dword [edi - 8]
or eax, dword [esp + 0x50]
push ecx
push eax
lea edx, [esp + 0x78]
push edx
call fcn.10103920
mov ecx, dword [esp + 0x30]
movzx eax, word [esp + 0xb4]
add ecx, 1
add esp, 0x14
add edi, 0x10
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jl 0x10106d30
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x64]
add edx, 0x10
sub dword [esp + 0x20], 1
mov dword [esp + 0x24], edx
jne 0x10106d00
add ebp, 0x30
cmp ebp, edi
mov dword [esp + 0x2c], ebp
jb 0x10106b77
jmp 0x10106e84
mov word [esp + 0x68], 0
mov eax, dword [ebx + 0x30]
mov ecx, dword [esp + 0x18]
mov word [ebx + 0x28], 1
mov dword [eax], ecx
xor eax, eax
xor edi, edi
cmp dword [esp + 0x10], edi
mov dword [ebx + 0x24], 0x2000
mov word [ebx + 0x12], di
mov byte [ebx + 0x11], 0
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
jne 0x10106efc
movzx ebp, word [esp + 0x68]
lea esi, [esp + 0x7a]
cmp edi, ebp
jge 0x10106efc
mov dx, word [esi - 2]
mov ax, word [esi]
mov ecx, dword [esi - 0xa]
add dx, 1
mov word [ebx + 0x14], dx
mov edx, dword [esi - 6]
mov word [ebx + 0x16], ax
mov dword [ebx], ecx
mov ecx, dword [esp + 0x2ac]
mov eax, ebx
mov dword [ebx + 4], edx
call fcn.10105500
add edi, 1
add esi, 0x10
test eax, eax
mov dword [esp + 0x10], eax
je 0x10106ebe
mov ebp, dword [esp + 0x2ac]
mov esi, dword [esp + 0x18]
add esi, 0x30
cmp esi, dword [esp + 0x60]
mov dword [esp + 0x18], esi
jb 0x10106ae5
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x298
ret