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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd0
mov ebp, edx
mov ebx, eax
lea edi, [esp + 0x18]
test ebp, ebp
je 0x313c7ec0
mov eax, ebp
neg eax
mov ecx, 0x65
cdq
idiv ecx
mov ebp, edx
mov esi, dword [ebx + 0x138]
test esi, esi
je 0x313c78d2
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x138]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x313c78d2
inc eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x138]
call fcn.3128d6fc
mov dword [esp], eax
mov eax, dword [esp + 8]
test eax, eax
jl 0x313c78c4
inc eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*2]
mov edx, dword [esp]
lea esi, [edx + eax]
movzx eax, byte [esi + 2]
mov byte [edi], al
movzx eax, byte [esi + 1]
mov byte [edi + 1], al
movzx eax, byte [esi]
mov byte [edi + 2], al
cmp dword [edi], 0xff00ff
je 0x313c78ba
movzx eax, byte [edi]
cmp al, byte [edi + 1]
jne 0x313c789c
cmp al, byte [edi + 2]
je 0x313c78ba
mov edx, ebp
mov eax, dword [edi]
call fcn.313ac758
mov dword [edi], eax
movzx eax, byte [edi]
mov byte [esi + 2], al
movzx eax, byte [edi + 1]
mov byte [esi + 1], al
movzx eax, byte [edi + 2]
mov byte [esi], al
inc dword [esp + 0x10]
dec dword [esp + 0x20]
jne 0x313c7867
inc dword [esp + 0x14]
dec dword [esp + 0x1c]
jne 0x313c7840
mov eax, dword [ebx + 0x94]
call fcn.312385fc
dec eax
test eax, eax
jl 0x313c7b35
inc eax
mov dword [esp + 0x1c], eax
xor esi, esi
imul eax, esi, 0xd
mov edx, dword [ebx + 0x94]
cmp dword [edx + eax*4], 0
je 0x313c7b2a
imul eax, esi, 0xd
mov edx, dword [ebx + 0x94]
mov eax, dword [edx + eax*4]
call fcn.3128d678
cmp al, 7
jne 0x313c7a1a
imul eax, esi, 0xd
mov edx, dword [ebx + 0x94]
mov eax, dword [edx + eax*4]
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
mov dword [esp + 0xc], eax
imul eax, esi, 0xd
mov edx, dword [ebx + 0x94]
mov eax, dword [edx + eax*4]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x313c7b2a
inc eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
imul eax, esi, 0xd
mov edx, dword [ebx + 0x94]
mov eax, dword [edx + eax*4]
mov edx, dword [esp + 0x14]
call fcn.3128d6fc
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
test eax, eax
jl 0x313c7a07
inc eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x10]
lea eax, [eax + edx*4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + 2]
mov byte [edi], al
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + 1]
mov byte [edi + 1], al
mov eax, dword [esp + 0x28]
movzx eax, byte [eax]
mov byte [edi + 2], al
cmp dword [edi], 0xff00ff
je 0x313c79fd
movzx eax, byte [edi]
cmp al, byte [edi + 1]
jne 0x313c79d3
cmp al, byte [edi + 2]
je 0x313c79fd
mov edx, ebp
mov eax, dword [edi]
call fcn.313ac758
mov dword [edi], eax
mov eax, dword [esp + 0x28]
movzx edx, byte [edi]
mov byte [eax + 2], dl
mov eax, dword [esp + 0x28]
movzx edx, byte [edi + 1]
mov byte [eax + 1], dl
mov eax, dword [esp + 0x28]
movzx edx, byte [edi + 2]
mov byte [eax], dl
inc dword [esp + 0x10]
dec dword [esp + 0x24]
jne 0x313c7990
inc dword [esp + 0x14]
dec dword [esp + 0x20]
jne 0x313c795e
jmp 0x313c7b2a
imul eax, esi, 0xd
mov edx, dword [ebx + 0x94]
mov eax, dword [edx + eax*4]
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
mov dword [esp + 0xc], eax
imul eax, esi, 0xd
mov edx, dword [ebx + 0x94]
mov eax, dword [edx + eax*4]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
mov dword [esp + 8], eax
imul eax, esi, 0xd
mov edx, dword [ebx + 0x94]
mov eax, dword [edx + eax*4]
mov dl, 6
call fcn.3128e8d4
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x313c7b2a
inc eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
imul eax, esi, 0xd
mov edx, dword [ebx + 0x94]
mov eax, dword [edx + eax*4]
mov edx, dword [esp + 0x14]
call fcn.3128d6fc
mov dword [esp], eax
mov eax, dword [esp + 8]
test eax, eax
jl 0x313c7b1c
inc eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*2]
mov edx, dword [esp]
lea eax, [edx + eax]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + 2]
mov byte [edi], al
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + 1]
mov byte [edi + 1], al
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax]
mov byte [edi + 2], al
cmp dword [edi], 0xff00ff
je 0x313c7b12
movzx eax, byte [edi]
cmp al, byte [edi + 1]
jne 0x313c7ae8
cmp al, byte [edi + 2]
je 0x313c7b12
mov edx, ebp
mov eax, dword [edi]
call fcn.313ac758
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
movzx edx, byte [edi]
mov byte [eax + 2], dl
mov eax, dword [esp + 0x2c]
movzx edx, byte [edi + 1]
mov byte [eax + 1], dl
mov eax, dword [esp + 0x2c]
movzx edx, byte [edi + 2]
mov byte [eax], dl
inc dword [esp + 0x10]
dec dword [esp + 0x24]
jne 0x313c7aa3
inc dword [esp + 0x14]
dec dword [esp + 0x20]
jne 0x313c7a72
inc esi
dec dword [esp + 0x1c]
jne 0x313c78ed
mov eax, dword [ebx + 0x9c]
call fcn.312385fc
dec eax
test eax, eax
jl 0x313c7e94
inc eax
mov dword [esp + 0x1c], eax
xor esi, esi
imul edi, esi, 0x13
mov eax, dword [ebx + 0x9c]
mov eax, dword [eax + edi*8 + 8]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x9c]
mov dword [edx + edi*8 + 8], eax
mov eax, dword [ebx + 0x9c]
mov eax, dword [eax + edi*8 + 0x60]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x9c]
mov dword [edx + edi*8 + 0x60], eax
mov eax, dword [ebx + 0x9c]
mov eax, dword [eax + edi*8 + 0x7c]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x9c]
mov dword [edx + edi*8 + 0x7c], eax
mov eax, dword [ebx + 0x9c]
mov eax, dword [eax + edi*8 + 0x78]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x9c]
mov dword [edx + edi*8 + 0x78], eax
mov eax, dword [ebx + 0x9c]
cmp dword [eax + edi*8 + 0xc], 0xffffffff
je 0x313c7bea
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0xc]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x9c]
mov dword [edx + edi*8 + 0xc], eax
mov eax, dword [ebx + 0x9c]
cmp dword [eax + edi*8 + 0x10], 0xffffffff
je 0x313c7c15
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0x10]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x9c]
mov dword [edx + edi*8 + 0x10], eax
mov eax, dword [ebx + 0x9c]
cmp dword [eax + edi*8 + 0x14], 0xffffffff
je 0x313c7c40
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0x14]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x9c]
mov dword [edx + edi*8 + 0x14], eax
mov eax, dword [ebx + 0x9c]
cmp dword [eax + edi*8 + 0x18], 0xffffffff
je 0x313c7c6b
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0x18]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x9c]
mov dword [edx + edi*8 + 0x18], eax
mov eax, dword [ebx + 0x9c]
cmp dword [eax + edi*8 + 0x1c], 0xffffffff
je 0x313c7c96
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0x1c]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x9c]
mov dword [edx + edi*8 + 0x1c], eax
mov eax, dword [ebx + 0x9c]
cmp dword [eax + edi*8 + 0x20], 0xffffffff
je 0x313c7cc1
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0x20]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x9c]
mov dword [edx + edi*8 + 0x20], eax
mov eax, dword [ebx + 0x9c]
cmp dword [eax + edi*8 + 0x24], 0xffffffff
je 0x313c7cec
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0x24]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x9c]
mov dword [edx + edi*8 + 0x24], eax
mov eax, dword [ebx + 0x9c]
cmp dword [eax + edi*8 + 0x28], 0xffffffff
je 0x313c7d17
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0x28]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x9c]
mov dword [edx + edi*8 + 0x28], eax
mov eax, dword [ebx + 0x9c]
cmp dword [eax + edi*8 + 0x2c], 0xffffffff
je 0x313c7d42
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0x2c]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x9c]
mov dword [edx + edi*8 + 0x2c], eax
mov eax, dword [ebx + 0x9c]
cmp dword [eax + edi*8 + 0x30], 0xffffffff
je 0x313c7d6d
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0x30]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x9c]
mov dword [edx + edi*8 + 0x30], eax
mov eax, dword [ebx + 0x9c]
mov eax, dword [eax + edi*8 + 0x4c]
mov edx, 0x313c7ec8
call fcn.31414628
mov ecx, 5
cdq
idiv ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
dec eax
test eax, eax
jl 0x313c7e00
inc eax
mov dword [esp + 0x20], eax
xor edi, edi
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0x50]
lea edx, [edi + edi*4]
mov eax, dword [eax + edx*4]
mov edx, ebp
call fcn.313ac758
imul edx, esi, 0x13
mov ecx, dword [ebx + 0x9c]
mov edx, dword [ecx + edx*8 + 0x50]
lea ecx, [edi + edi*4]
mov dword [edx + ecx*4], eax
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0x50]
lea edx, [edi + edi*4]
mov eax, dword [eax + edx*4 + 4]
mov edx, ebp
call fcn.313ac758
imul edx, esi, 0x13
mov ecx, dword [ebx + 0x9c]
mov edx, dword [ecx + edx*8 + 0x50]
lea ecx, [edi + edi*4]
mov dword [edx + ecx*4 + 4], eax
inc edi
dec dword [esp + 0x20]
jne 0x313c7d9d
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0x70]
call fcn.312385fc
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
dec eax
test eax, eax
jl 0x313c7e89
inc eax
mov dword [esp + 0x20], eax
xor edi, edi
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0x70]
lea edx, [edi + edi*4]
mov eax, dword [eax + edx*4]
mov edx, ebp
call fcn.313ac758
imul edx, esi, 0x13
mov ecx, dword [ebx + 0x9c]
mov edx, dword [ecx + edx*8 + 0x70]
lea ecx, [edi + edi*4]
mov dword [edx + ecx*4], eax
imul eax, esi, 0x13
mov edx, dword [ebx + 0x9c]
mov eax, dword [edx + eax*8 + 0x70]
lea edx, [edi + edi*4]
mov eax, dword [eax + edx*4 + 4]
mov edx, ebp
call fcn.313ac758
imul edx, esi, 0x13
mov ecx, dword [ebx + 0x9c]
mov edx, dword [ecx + edx*8 + 0x70]
lea ecx, [edi + edi*4]
mov dword [edx + ecx*4 + 4], eax
inc edi
dec dword [esp + 0x20]
jne 0x313c7e26
inc esi
dec dword [esp + 0x1c]
jne 0x313c7b50
mov eax, dword [ebx + 0x90]
mov eax, dword [eax + 0x20]
mov edx, ebp
call fcn.313ac758
mov esi, dword [ebx + 0x90]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x3c]
mov edx, ebp
call fcn.313ac758
mov edx, dword [ebx + 0x90]
mov dword [edx + 0x3c], eax
add esp, 0x30
pop ebp
pop edi
pop esi
pop ebx
ret