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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x101f62b4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x24], 0
and dl, 2
push edi
mov byte [esp + 0x13], dl
cmp byte [esi], 3
mov eax, dword [esi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
jne 0x1006d3ca
call fcn.100640a0
mov edi, eax
test edi, edi
jne 0x1006d744
mov ebx, dword [esi + 0x74]
movsx eax, byte [esi + 0x44]
movzx ecx, word [esi + 0x46]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x20], ecx
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
cmp dword [ebx + 0x14], 0
mov dword [esp + 0xc], ecx
jge 0x1006d424
mov ecx, ebx
call fcn.100650b0
test eax, eax
je 0x1006d420
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
cmp byte [esp + 0x13], 0
je 0x1006d47e
cmp byte [ebx + 8], 0
je 0x1006d46d
push ecx
push ebx
call fcn.10064620
mov edi, dword [ebx + 0x14]
add esp, 8
movzx ecx, ax
add edi, 2
add edi, ecx
mov eax, 0xaaaaaaab
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x28]
add ecx, ecx
mul ecx
shr edx, 1
cmp edi, edx
jg 0x1006d46d
cmp word [ebx + 0x18], 1
je 0x1006d46d
mov dword [esp + 0x28], 1
jmp 0x1006d47e
mov ecx, esi
call fcn.10063e70
mov edi, eax
test edi, edi
jne 0x1006d744
cmp byte [ebx + 8], 0
jne 0x1006d4bc
and byte [esi + 1], 0xf1
xor eax, eax
mov word [esi + 0x32], ax
cmp byte [esi], al
jne 0x1006d4ad
movzx ecx, word [esi + 0x46]
test cx, cx
je 0x1006d4ad
mov eax, dword [esi + 0x74]
cmp byte [eax + 8], 0
je 0x1006d4ad
lea eax, [ecx - 1]
mov word [esi + 0x46], ax
jmp 0x1006d4bc
mov ecx, esi
call fcn.10069170
test eax, eax
jne 0x1006d746
test byte [esi + 1], 0x20
je 0x1006d4dc
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x14]
push esi
call fcn.10063f00
mov edi, eax
add esp, 4
test edi, edi
jne 0x1006d744
cmp dword [esi + 0x70], 0
jne 0x1006d4f9
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x18]
push 0
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.10063cf0
add esp, 0xc
mov ecx, dword [ebx + 0x48]
call fcn.1005fd50
mov edi, eax
test edi, edi
jne 0x1006d744
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.10069df0
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, ebx
lea eax, [esp + 0xc]
push eax
movzx eax, word [esp + 0x46]
push eax
call fcn.1006a260
mov edi, dword [esp + 0x14]
add esp, 8
test edi, edi
jne 0x1006d744
cmp byte [ebx + 8], 0
jne 0x1006d65c
mov edi, dword [esi + 0x74]
mov dword [esp + 0xc], edi
cmp dword [edi + 0x14], 0
jge 0x1006d573
mov ecx, edi
call fcn.100650b0
mov edi, eax
test edi, edi
jne 0x1006d744
mov edi, dword [esp + 0xc]
movsx eax, byte [esi + 0x44]
mov ecx, dword [esp + 0x1c]
dec eax
cmp ecx, eax
jge 0x1006d586
mov eax, dword [esi + ecx*4 + 0x7c]
jmp 0x1006d589
mov eax, dword [esi + 0x74]
mov eax, dword [eax + 4]
movzx ecx, word [edi + 0x18]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
lea eax, [edx + 4]
add ecx, edx
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jae 0x1006d5d5
mov ecx, 0x11e8d
call fcn.100df020
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
push ecx
push edi
mov edi, dword [edi + 0x4c]
mov ecx, edi
call dword [0x1019a4f8]
call edi
mov edi, dword [esp + 0x14]
add esp, 8
movzx eax, ax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x48]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x14], eax
call fcn.1005fd50
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1006d638
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, ebx
push dword [esp + 0x1c]
add eax, 4
push eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffffc
push eax
call fcn.1006a380
add esp, 0x14
movzx edx, word [edi + 0x18]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
dec edx
mov ecx, edi
call fcn.1006a260
mov edi, dword [esp + 0x14]
add esp, 8
test edi, edi
jne 0x1006d744
mov ecx, esi
call fcn.1006c860
mov edi, eax
test edi, edi
jne 0x1006d744
movsx eax, byte [esi + 0x44]
cmp eax, dword [esp + 0x1c]
jle 0x1006d6ce
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + 0x48]
call fcn.1005f520
mov dl, byte [esi + 0x44]
mov edi, dword [esp + 0x1c]
dec dl
movsx eax, dl
mov byte [esi + 0x44], dl
cmp eax, edi
jle 0x1006d6b7
movsx eax, dl
dec dl
mov ecx, dword [esi + eax*4 + 0x78]
mov byte [esi + 0x44], dl
test ecx, ecx
je 0x1006d6b0
mov ecx, dword [ecx + 0x48]
call fcn.1005f520
mov dl, byte [esi + 0x44]
movsx eax, dl
cmp eax, edi
jg 0x1006d695
movsx eax, dl
mov ecx, esi
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
call fcn.1006c860
mov edi, eax
test edi, edi
jne 0x1006d744
cmp dword [esp + 0x28], 0
je 0x1006d722
mov byte [esi], 2
movzx eax, word [ebx + 0x18]
cmp dword [esp + 0x20], eax
jb 0x1006d707
mov dword [esi + 4], 0xffffffff
mov ax, word [ebx + 0x18]
dec ax
mov word [esi + 0x46], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.100686c0
cmp byte [esp + 0x13], 0
mov edi, eax
je 0x1006d73c
mov ecx, esi
call fcn.10063d50
mov byte [esi], 3
xor eax, eax
cmp edi, 0x10
cmove edi, eax
mov eax, edi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret