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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0xac
mov eax, dword [ecx + 0x1a8]
mov edi, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
mov eax, dword [eax + edi*4 + 0x6c4]
mov edi, dword [esp + 0xc0]
dec eax
cmp dword [esp + 0xd4], eax
mov ebp, dword [edi + ecx*4 + 0x53e4]
setl al
movzx eax, al
add edx, ebp
lea eax, [edx + eax + 1]
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x70], eax
xor eax, eax
xor esi, esi
xor edi, edi
mov dword [esp + eax + 0x74], esi
mov dword [esp + eax + 0x78], edi
add eax, 8
cmp eax, 0x28
jb 0x6fdd5842
xor edx, edx
mov ecx, dword [esp + 0xc4]
mov dword [esp + eax + 0x74], edx
lea eax, [esp + 0x74]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x80]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xcc]
mov dword [esp], eax
call fcn.6fdf4b90
xor ecx, ecx
sub esp, 0x18
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x1a0]
cmp byte [ebx + 0x5398], 0
mov dword [esp + 0x50], ecx
mov eax, dword [eax + 0xb0]
mov dword [esp + 0x24], eax
lea eax, [eax*4 + 4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x68], eax
je 0x6fdd5c90
movsx eax, word [esp + 0x6a]
cmp dword [esp + 0x28], eax
jg 0x6fdd5c90
mov edx, 0x7fffffff
lea esi, [esp + 0x68]
mov eax, dword [esp + 0x70]
cmp byte [ebx + 0x5398], 0
mov dword [esp + 0x68], eax
je 0x6fdd5917
movsx eax, word [esp + 0x6a]
cmp eax, dword [esp + 0x28]
jge 0x6fdd59de
mov ecx, dword [esp + 0xc4]
mov dword [esp], esi
mov dword [esp + 0x28], edx
call fcn.6fdf3030
lea ecx, [ebx + 0x10]
sub esp, 4
mov eax, dword [esp + 0xc8]
mov edx, dword [esp + 0xd0]
imul ebp, dword [eax + 0x10], 0xfa0
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], esi
lea edi, [ebx + ebp + 0x1490]
shl eax, 4
add eax, edx
mov edx, dword [esp + 0xd4]
lea eax, [edx + eax + 0x1b0]
mov edx, dword [ebx + 0x1a8]
mov eax, dword [edx + eax*4 + 0xc]
mov eax, dword [eax + 4]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.6fed7580
mov ecx, dword [ebx + ebp + 0x149c]
mov eax, dword [ebx + 0x80]
sub esp, 0xc
mov dword [esp + 0xc], ecx
movzx ecx, byte [eax + 0x707621a0]
mov ebp, dword [edi + 0xc]
movzx eax, byte [eax + 0x707622a0]
mov edx, dword [edi]
imul ecx, ebp
add eax, ecx
mov ecx, 0x40
add eax, edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov eax, dword [ebx + 0xe0]
mov dword [esp], eax
call dword [ebx + 0xb4]
mov edx, dword [esp + 0x28]
cmp eax, edx
jae 0x6fdd59de
mov eax, 1
mov dword [esp + 0x50], eax
xor eax, eax
mov ecx, dword [esp + 0xc4]
xor edi, edi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x50]
xor ebp, ebp
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ebp
mov eax, dword [esp + eax*4 + 0x6c]
mov dword [esp], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
call fcn.6fdf3030
sub esp, 4
mov eax, dword [esp + 0x24]
movzx ecx, word [esp + 0x68]
movzx edx, word [esp + 0x6a]
shl eax, 2
and eax, 0xfffc
mov esi, ecx
sub esi, eax
add ecx, eax
mov word [esp + 0x54], si
mov esi, edx
mov word [esp + 0x58], cx
mov ecx, dword [esp + 0xc4]
sub esi, eax
mov word [esp + 0x56], si
lea esi, [esp + 0x54]
add eax, edx
mov dword [esp], esi
mov word [esp + 0x5a], ax
call fcn.6fdf3030
sub esp, 4
mov ecx, dword [esp + 0xc4]
lea edi, [esp + 0x58]
mov dword [esp], edi
call fcn.6fdf3030
mov ecx, 0xffff8001
sub esp, 4
movsx eax, word [esp + 0x56]
movsx edx, word [esp + 0x54]
cmp eax, 0xffff8000
cmovle eax, ecx
cmp edx, 0xffff8000
cmovle edx, ecx
movsx ecx, word [ebx + 0x53a0]
sar edx, 2
mov word [esp + 0x54], dx
movsx edx, word [esp + 0x58]
sar eax, 2
mov ebp, eax
cwde
sar edx, 2
mov word [esp + 0x58], dx
movsx edx, word [esp + 0x5a]
sar edx, 2
cmp eax, ecx
jle 0x6fdd5ac4
mov ebp, ecx
lea eax, [esp + 0x5c]
cmp edx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
cmovg edx, ecx
mov word [esp + 0x56], bp
lea ebp, [esp + 0x60]
mov dword [esp + 8], edi
lea ecx, [ebx + 0x9c]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x18], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], esi
mov word [esp + 0x5a], dx
imul edx, dword [esp + 0xd0], 0x3b8
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x1a8]
mov esi, dword [eax + 0x608]
mov eax, dword [esp + 0xd4]
add edx, esi
lea esi, [eax*8]
shl eax, 6
sub eax, esi
add eax, edx
mov dword [esp], eax
call fcn.6fed15c0
mov edi, dword [0x70e9f278]
sub esp, 0x20
movsx esi, word [esp + 0x5c]
mov dword [esp + 0x28], eax
movsx eax, word [ebx + 0xa8]
movsx ecx, word [esp + 0x5e]
mov edx, esi
sub edx, eax
mov eax, edx
cdq
xor eax, edx
sub eax, edx
movsx edx, word [ebx + 0xaa]
mov dword [esp + 0x24], esi
mov esi, ecx
fld dword [edi + eax*4]
sub esi, edx
mov edx, esi
sar esi, 0x1f
xor edx, esi
sub edx, esi
fadd dword [edi + edx*4]
fnstcw word [esp + 0x3e]
mov edi, dword [esp + 0x4c]
fadd dword [0x70765770]
movzx eax, word [esp + 0x3e]
or ax, 0xc00
mov word [esp + 0x3c], ax
fldcw word [esp + 0x3c]
fistp qword [esp + 0x30]
fldcw word [esp + 0x3e]
mov esi, dword [esp + 0x30]
mov edx, dword [ebx + 0x9c]
add esi, edi
mov edi, dword [esp + 0x24]
mov eax, esi
mov dword [esp + 0x4c], esi
mov esi, dword [ebx + 0xa0]
movzx edx, word [edx + edi*2]
mov edi, dword [esp + 0x28]
add dx, word [esi + ecx*2]
mov ecx, dword [ebx + 0x184]
movzx edx, dx
sub edi, edx
imul ecx, eax
mul dword [ebx + 0x180]
mov dword [esp + 8], ebp
add edx, ecx
add eax, 0x80
adc edx, 0
mov ecx, ebx
shrd eax, edx, 8
add eax, edi
mov dword [esp + 0x64], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
lea eax, [esp + 0x6c]
mov dword [esp], eax
call fcn.6fdd5660
sub esp, 0x18
mov eax, dword [esp + 0xc0]
lea ebx, [eax + 0x5400]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
mov eax, dword [esp + 0xd0]
mov edi, dword [esp + 0xc0]
mov edx, dword [esp + 0x64]
lea eax, [eax + eax*2]
lea eax, [edi + eax*8]
cmp dword [eax + 0x53c4], edx
ja 0x6fdd5d80
je 0x6fdd5d61
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov ecx, dword [esp + 0xc4]
lea esi, [esp + 0x68]
mov dword [esp], esi
call fcn.6fdf3030
lea ecx, [ebx + 0x10]
sub esp, 4
mov eax, dword [esp + 0xc8]
imul ebp, dword [eax + 0x10], 0xfa0
mov dword [esp + 8], esi
mov eax, dword [esp + 0xd0]
mov edx, dword [ebx + 0x1a8]
lea edi, [ebx + ebp + 0x1490]
shl eax, 4
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0xd0]
add eax, edx
mov edx, dword [esp + 0xd4]
lea eax, [edx + eax + 0x1b0]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + eax*4 + 0xc]
mov eax, dword [eax + 4]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.6fed7580
mov edx, dword [ebx + ebp + 0x149c]
mov eax, dword [ebx + 0x80]
sub esp, 0xc
mov dword [esp + 0xc], edx
movzx edx, byte [eax + 0x707621a0]
mov ecx, dword [edi + 0xc]
movzx eax, byte [eax + 0x707622a0]
mov ebp, dword [edi]
imul edx, ecx
add eax, edx
add eax, ebp
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xe0]
mov dword [esp], eax
call dword [ebx + 0xb4]
cmp eax, 0x7ffffffe
mov edx, eax
jbe 0x6fdd5dd4
mov edx, 0x7fffffff
jmp 0x6fdd58f7
mov eax, dword [eax + 0x53c0]
cmp dword [esp + 0xd4], eax
jge 0x6fdd5c76
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esp + 0xd0]
mov edi, dword [esp + 0xc0]
mov esi, dword [esp + 0x5c]
lea eax, [eax + eax*2]
lea eax, [edi + eax*8]
mov edi, dword [esp + 0xd4]
mov dword [eax + 0x53b4], esi
mov esi, dword [esp + 0x60]
mov dword [eax + 0x53c4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x53c0], edi
mov dword [eax + 0x53b8], esi
mov esi, dword [esp + 0x50]
mov dword [eax + 0x53c8], edx
mov dword [eax + 0x53bc], esi
jmp 0x6fdd5c76
xor edi, edi
mov dword [esp + 0x50], edi
jmp 0x6fdd58f7