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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 6
push ebx
push esi
push edi
jne 0xd18723
and dword [ebp + 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [0x27581390]
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x14]
movsx edi, ax
sub edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
shr eax, 0x10
movsx ebx, ax
sub ebx, dword [ebp - 0xc]
push esi
movzx ecx, di
movzx eax, bx
shl eax, 0x10
or eax, ecx
mov dword [ebp + 0x10], eax
call fcn.00d18baa
mov dword [ebp + 8], eax
and eax, 3
cmp al, 3
je 0xd18833
xor eax, eax
cmp dword [ebp + 0x14], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x78], eax
je 0xd18735
mov dword [esi + 0x7c], 1
mov dword [esi + 0x80], eax
push dword [ebp + 0x14]
push esi
call fcn.00d19239
cmp dword [ebp + 0x14], 0
lea ecx, [esi + 0x8c]
mov dword [esi + 0x68], 0x27628bc3
mov dword [esi + 0x78], 1
lea eax, [ecx + 4]
jne 0xd186ba
mov ecx, eax
sub eax, 4
mov edx, dword [esi + 0x30]
mov dword [ecx], edx
mov edx, dword [esi + 0x44]
mov dword [eax], edx
mov edx, dword [esi + 0x38]
mov dword [ecx + 8], edx
mov ecx, dword [esi + 0x28]
xor edx, edx
mov dword [eax + 8], ecx
cmp dword [ebp + 0x14], edx
je 0xd186d9
mov edi, ebx
mov ebx, dword [esi + 0x48]
mov dword [esi + 0x1c], edi
cmp edi, ebx
jge 0xd18747
test byte [ebp + 8], 1
jne 0xd18754
mov dword [esi + 0x58], edx
mov dword [eax + 8], ebx
cmp dword [esi + 0x58], 4
je 0xd18718
mov eax, dword [ebp + 0x14]
push dword [ebp + 0xc]
mov dword [esi + 0x74], eax
call dword [0x27581400]
lea eax, [esi + 0x8c]
push eax
lea eax, [esi + 0xac]
push eax
call dword [0x275811b8]
push dword [ebp + 0x10]
push esi
call fcn.00d18517
jmp 0xd1875a
cmp dword [ebp + 0x14], 7
jne 0xd1875a
mov dword [ebp + 0x14], 1
jmp 0xd18624
mov dword [esi + 0x80], 1
mov dword [esi + 0x7c], eax
jmp 0xd1868f
mov ecx, dword [esi + 0x2c]
cmp edi, ecx
jl 0xd1876c
test byte [ebp + 8], 2
je 0xd18761
mov dword [esi + 0x68], edx
mov dword [esi + 0x78], edx
pop edi
pop esi
pop ebx
leave
ret 0x10
mov dword [esi + 0x58], 1
mov dword [eax], ecx
jmp 0xd186ef
cmp edi, dword [esi + 0x40]
jge 0xd18785
mov dword [esi + 0x58], 2
mov dword [eax], ebx
mov ecx, dword [esi + 0x40]
mov dword [eax + 8], ecx
jmp 0xd186ef
mov edx, dword [esi + 0x3c]
cmp edi, edx
jge 0xd18873
sub ecx, ebx
cmp ecx, dword [esi + 0x4c]
jle 0xd18833
mov eax, dword [ebp + 0x14]
lea edi, [esi + 0xac]
mov dword [esi + 0x74], eax
lea eax, [esi + 0x8c]
push eax
push edi
mov dword [esi + 0x58], 4
call dword [0x275811b8]
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0xd18840
mov eax, dword [esi + 0x18]
shl eax, 1
push eax
mov eax, dword [esi + 0xb4]
sub eax, dword [edi]
shl eax, 1
push eax
push edi
call dword [0x27581420]
mov eax, dword [esi + 0x40]
mov dword [esi + 0x68], 0x27628ca0
test ebx, ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x34], eax
je 0xd18857
mov ecx, dword [esi + 0x110]
sub eax, dword [esi + 0x1c]
push dword [ebp + 0xc]
mov dword [esi + 0x64], ecx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x24], eax
call dword [0x27581400]
mov eax, dword [esi + 0x5c]
test ebx, ebx
je 0xd1885f
mov dword [esi + 0x110], eax
push ebx
push eax
push 5
push dword [ebp + 0xc]
call fcn.00d1829c
push dword [ebp + 0xc]
call dword [0x27581284]
test eax, eax
jne 0xd18867
and dword [esi + 0x68], 0
and dword [esi + 0x78], 0
jmp 0xd1875a
mov eax, dword [esi + 0xb8]
sub eax, dword [esi + 0xb0]
shl eax, 1
push eax
mov eax, dword [esi + 0xc]
jmp 0xd187d1
mov ecx, dword [esi + 0x100]
jmp 0xd187f5
mov dword [esi + 0x100], eax
jmp 0xd1881a
push ebx
push esi
call fcn.00d192c5
jmp 0xd186ef
mov dword [esi + 0x58], 3
mov dword [eax], edx
mov ecx, dword [esi + 0x2c]
jmp 0xd1877d