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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x313c8b56
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x313c8b3a
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x313c7ee8]
call fcn.312387c4
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
cmp word [eax + 0x4a], 0
je 0x313c84e8
push ebp
lea eax, [ebp - 0x28]
mov edx, 0x313c8b70
call fcn.313c7f64
pop ecx
push ebp
lea eax, [ebp - 0x3c]
mov edx, 0x313c8b94
call fcn.313c7f64
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
cmp word [eax + 0x4a], 1
jne 0x313c84e8
push ebp
lea eax, [ebp - 0x30]
mov edx, 0x313c8bb8
call fcn.313c7f64
pop ecx
push ebp
lea eax, [ebp - 0x2c]
mov edx, 0x313c8bd8
call fcn.313c7f64
pop ecx
push ebp
lea eax, [ebp - 0x34]
mov edx, 0x313c8bf8
call fcn.313c7f64
pop ecx
push ebp
lea eax, [ebp - 0x38]
mov edx, 0x313c8c18
call fcn.313c7f64
pop ecx
push ebp
lea eax, [ebp - 0x40]
mov edx, 0x313c8c38
call fcn.313c7f64
pop ecx
push ebp
lea eax, [ebp - 0x44]
mov edx, 0x313c8c58
call fcn.313c7f64
pop ecx
push ebp
lea eax, [ebp - 0x48]
mov edx, 0x313c8c78
call fcn.313c7f64
pop ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x138]
test ebx, ebx
je 0x313c85b5
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
mov ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x138]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jl 0x313c85b5
inc ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x138]
mov edx, dword [ebp - 0x20]
call fcn.3128d6fc
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x18]
test edi, edi
jl 0x313c85a9
inc edi
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x10]
lea ebx, [edx + eax]
movzx eax, byte [ebx + 2]
mov byte [ebp - 0x24], al
movzx eax, byte [ebx + 1]
mov byte [ebp - 0x23], al
movzx eax, byte [ebx]
mov byte [ebp - 0x22], al
cmp dword [ebp - 0x24], 0xff00ff
je 0x313c85a3
movzx eax, byte [ebp - 0x24]
cmp al, byte [ebp - 0x23]
jne 0x313c8582
cmp al, byte [ebp - 0x22]
je 0x313c85a3
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.313ac8c4
mov dword [ebp - 0x24], eax
movzx eax, byte [ebp - 0x24]
mov byte [ebx + 2], al
movzx eax, byte [ebp - 0x23]
mov byte [ebx + 1], al
movzx eax, byte [ebp - 0x22]
mov byte [ebx], al
inc dword [ebp - 0x1c]
dec edi
jne 0x313c854b
inc dword [ebp - 0x20]
dec dword [ebp - 0x4c]
jne 0x313c8528
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
cmp word [eax + 0x4a], 0
je 0x313c862f
push ebp
lea eax, [ebp - 0x28]
call fcn.313c8358
pop ecx
push ebp
lea eax, [ebp - 0x3c]
call fcn.313c8358
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
cmp word [eax + 0x4a], 1
jne 0x313c862f
push ebp
lea eax, [ebp - 0x30]
call fcn.313c8358
pop ecx
push ebp
lea eax, [ebp - 0x2c]
call fcn.313c8358
pop ecx
push ebp
lea eax, [ebp - 0x34]
call fcn.313c8358
pop ecx
push ebp
lea eax, [ebp - 0x38]
call fcn.313c8358
pop ecx
push ebp
lea eax, [ebp - 0x40]
call fcn.313c8358
pop ecx
push ebp
lea eax, [ebp - 0x44]
call fcn.313c8358
pop ecx
push ebp
lea eax, [ebp - 0x48]
call fcn.313c8358
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x94]
call fcn.312385fc
dec eax
test eax, eax
jl 0x313c886f
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0xc], 0
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x94]
cmp dword [edx + eax*4], 0
je 0x313c8863
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
cmp word [eax + 0x4a], 0
je 0x313c86b5
mov eax, dword [ebp - 4]
call fcn.312385fc
dec eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov edi, dword [ebp - 0x1c]
test edi, edi
jl 0x313c86ab
inc edi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
cmp eax, dword [ebp - 0xc]
jne 0x313c86a7
mov dword [ebp - 0x20], 1
jmp 0x313c86ab
inc ebx
dec edi
jne 0x313c8693
cmp dword [ebp - 0x20], 1
je 0x313c8863
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x94]
mov eax, dword [edx + eax*4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov ebx, eax
dec ebx
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x94]
mov eax, dword [edx + eax*4]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
mov dword [ebp - 0x18], eax
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x94]
mov eax, dword [edx + eax*4]
call fcn.3128d678
cmp al, 7
jne 0x313c87ae
mov edi, ebx
test edi, edi
jl 0x313c8863
inc edi
mov dword [ebp - 0x20], 0
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x94]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x20]
call fcn.3128d6fc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x313c879f
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
lea ebx, [eax + edx*4]
movzx eax, byte [ebx + 2]
mov byte [ebp - 0x24], al
movzx eax, byte [ebx + 1]
mov byte [ebp - 0x23], al
movzx eax, byte [ebx]
mov byte [ebp - 0x22], al
cmp dword [ebp - 0x24], 0xff00ff
je 0x313c8797
movzx eax, byte [ebp - 0x24]
cmp al, byte [ebp - 0x23]
jne 0x313c8776
cmp al, byte [ebp - 0x22]
je 0x313c8797
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.313ac8c4
mov dword [ebp - 0x24], eax
movzx eax, byte [ebp - 0x24]
mov byte [ebx + 2], al
movzx eax, byte [ebp - 0x23]
mov byte [ebx + 1], al
movzx eax, byte [ebp - 0x22]
mov byte [ebx], al
inc dword [ebp - 0x1c]
dec dword [ebp - 0x50]
jne 0x313c8742
inc dword [ebp - 0x20]
dec edi
jne 0x313c8715
jmp 0x313c8863
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x94]
mov eax, dword [edx + eax*4]
mov dl, 6
call fcn.3128e8d4
mov edi, ebx
test edi, edi
jl 0x313c8863
inc edi
mov dword [ebp - 0x20], 0
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x94]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x20]
call fcn.3128d6fc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x313c8859
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x10]
lea ebx, [edx + eax]
movzx eax, byte [ebx + 2]
mov byte [ebp - 0x24], al
movzx eax, byte [ebx + 1]
mov byte [ebp - 0x23], al
movzx eax, byte [ebx]
mov byte [ebp - 0x22], al
mov eax, dword [0x3143fcb0]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
je 0x313c8851
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.313ac8c4
mov dword [ebp - 0x24], eax
movzx eax, byte [ebp - 0x24]
mov byte [ebx + 2], al
movzx eax, byte [ebp - 0x23]
mov byte [ebx + 1], al
movzx eax, byte [ebp - 0x22]
mov byte [ebx], al
inc dword [ebp - 0x1c]
dec dword [ebp - 0x50]
jne 0x313c8804
inc dword [ebp - 0x20]
dec edi
jne 0x313c87d7
inc dword [ebp - 0xc]
dec dword [ebp - 0x4c]
jne 0x313c8651
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x9c]
call fcn.312385fc
dec eax
test eax, eax
jl 0x313c8aed
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0xc], 0
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov edx, dword [edx + eax*8 + 8]
mov eax, esi
call fcn.313ac8c4
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov dword [ecx + edx*8 + 8], eax
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov edx, dword [edx + eax*8 + 0x60]
mov eax, esi
call fcn.313ac8c4
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov dword [ecx + edx*8 + 0x60], eax
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov edx, dword [edx + eax*8 + 0x7c]
mov eax, esi
call fcn.313ac8c4
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov dword [ecx + edx*8 + 0x7c], eax
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov edx, dword [edx + eax*8 + 0x78]
mov eax, esi
call fcn.313ac8c4
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov dword [ecx + edx*8 + 0x78], eax
mov ebx, 1
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
lea eax, [edx + eax*8]
mov edi, dword [eax + ebx*4 + 8]
cmp edi, 0xffffffff
je 0x313c8970
mov edx, edi
mov eax, esi
call fcn.313ac8c4
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
lea edx, [ecx + edx*8]
mov dword [edx + ebx*4 + 8], eax
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
lea eax, [edx + eax*8]
mov edi, dword [eax + ebx*4 + 0x1c]
cmp edi, 0xffffffff
je 0x313c89a6
mov edx, edi
mov eax, esi
call fcn.313ac8c4
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
lea edx, [ecx + edx*8]
mov dword [edx + ebx*4 + 0x1c], eax
inc ebx
cmp ebx, 6
jne 0x313c893a
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov eax, dword [edx + eax*8 + 0x4c]
mov edx, 0x313c8c8c
call fcn.31414628
mov ecx, 5
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
dec edi
test edi, edi
jl 0x313c8a4d
inc edi
xor ebx, ebx
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov eax, dword [edx + eax*8 + 0x50]
lea edx, [ebx + ebx*4]
mov edx, dword [eax + edx*4]
mov eax, esi
call fcn.313ac8c4
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov edx, dword [ecx + edx*8 + 0x50]
lea ecx, [ebx + ebx*4]
mov dword [edx + ecx*4], eax
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov eax, dword [edx + eax*8 + 0x50]
lea edx, [ebx + ebx*4]
mov edx, dword [eax + edx*4 + 4]
mov eax, esi
call fcn.313ac8c4
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov edx, dword [ecx + edx*8 + 0x50]
lea ecx, [ebx + ebx*4]
mov dword [edx + ecx*4 + 4], eax
inc ebx
dec edi
jne 0x313c89dd
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov eax, dword [edx + eax*8 + 0x70]
call fcn.312385fc
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
dec edi
test edi, edi
jl 0x313c8ae1
inc edi
xor ebx, ebx
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov eax, dword [edx + eax*8 + 0x70]
lea edx, [ebx + ebx*4]
mov edx, dword [eax + edx*4]
mov eax, esi
call fcn.313ac8c4
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov edx, dword [ecx + edx*8 + 0x70]
lea ecx, [ebx + ebx*4]
mov dword [edx + ecx*4], eax
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov eax, dword [edx + eax*8 + 0x70]
lea edx, [ebx + ebx*4]
mov edx, dword [eax + edx*4 + 4]
mov eax, esi
call fcn.313ac8c4
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov edx, dword [ecx + edx*8 + 0x70]
lea ecx, [ebx + ebx*4]
mov dword [edx + ecx*4 + 4], eax
inc ebx
dec edi
jne 0x313c8a71
inc dword [ebp - 0xc]
dec dword [ebp - 0x4c]
jne 0x313c8891
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
mov edx, dword [eax + 0x20]
mov eax, esi
call fcn.313ac8c4
mov edx, dword [ebp - 8]
mov ebx, dword [edx + 0x90]
mov dword [ebx + 0x20], eax
mov edx, dword [ebx + 0x3c]
mov eax, esi
call fcn.313ac8c4
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x90]
mov dword [edx + 0x3c], eax
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x313c7ee8]
call fcn.312387c4
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x313c8b5d
lea eax, [ebp - 4]
mov edx, dword [0x313c7ee8]
call fcn.312387d0
ret