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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x156c
call fcn.100a1ec0
mov eax, dword [0x100a80a4]
xor eax, esp
mov dword [esp + 0x1568], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x20]
push edi
push dword [ebp + 0x24]
mov edi, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0x28]
push esi
mov dword [esp + 0x2c], ecx
lea ecx, [edi + 8]
mov dword [esp + 0x20], ebx
push eax
mov dword [esp + 0x38], esi
call fcn.10030080
mov eax, dword [ebp + 0x18]
mov ecx, 6
mov edx, dword [ebp + 0x1c]
mov dword [edi + 0x48], eax
mov eax, 0xffff
mov word [edi + 0x4e], ax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x6c], esi
mov esi, dword [ebp + 0xc]
mov dword [edi + 0x68], eax
lea eax, [edi + 0xf8]
mov byte [edi + 0x4c], bl
mov dword [edi], 0x1000169c
mov dword [edi + 8], 0x10001684
mov dword [edi + 0x50], 0x10001638
mov dword [edi + 0x110], 1
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], 5
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], esi
mov dword [edi + 0x7c], esi
lea ecx, [ecx]
mov dword [eax - 0x18], 0
lea eax, [eax + 4]
mov dword [eax - 4], 1
sub ecx, 1
jne 0x10031a90
lea eax, [edi + 0x5c]
mov ecx, esi
push eax
push edx
push ebx
mov edx, esi
call fcn.10021710
add esp, 0xc
test eax, eax
je 0x10031f8d
mov ecx, dword [edi + 0x5c]
mov eax, 6
add ecx, 0x1f
and ecx, 0xffffffe0
mul ecx
mov dword [edi + 0x5c], ecx
mov ecx, eax
test edx, edx
ja 0x10031f8d
jb 0x10031aeb
cmp ecx, 0x80000000
ja 0x10031f8d
mov esi, dword [esp + 0x2c]
mov dword [edi + 0x70], ecx
cmp esi, 2
je 0x10031b2b
cmp esi, 3
je 0x10031b2b
cmp esi, 1
jne 0x10031b75
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
test dword [eax + 0x220], 0x100
jne 0x10031b22
test dword [eax + 0x4c], 0x10000000
je 0x10031b22
xor eax, eax
jmp 0x10031b27
mov eax, 1
test eax, eax
je 0x10031b75
test ecx, ecx
je 0x10031b6c
add ecx, 0x20
je 0x10031b55
push ecx
call fcn.1000efa0
mov edx, eax
add esp, 4
test edx, edx
jne 0x10031b57
mov dword [edi + 0x58], eax
mov eax, dword [esp + 0x24]
mov dword [eax], 0x8007000e
jmp 0x10031f97
xor edx, edx
mov eax, edx
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
mov dword [edx + ecx - 4], ecx
lea eax, [edx + ecx]
jmp 0x10031b6e
xor eax, eax
mov dword [edi + 0x58], eax
test eax, eax
je 0x10031b46
push 0x1500
lea eax, [esp + 0x74]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov eax, dword [eax + 0x208]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x44], eax
lea eax, [ebx + ebx*2]
add eax, eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x68]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x4c], 5
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
cmp esi, 1
jne 0x10031c17
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
test dword [eax + 0x220], 0x100
jne 0x10031c10
test dword [eax + 0x4c], 0x10000000
je 0x10031c10
mov eax, esi
jmp 0x10031c19
mov eax, 2
jmp 0x10031c19
mov eax, esi
mov esi, dword [esp + 0x18]
lea ecx, [ebx*8]
mov dword [esp + 0x54], eax
lea edx, [esp + 0x74]
xor eax, eax
mov dword [esp + 0x1c], edx
sub ecx, ebx
mov dword [esp + 0x10], eax
shl ecx, 2
mov dword [esp + 0x3c], ecx
nop
mov ebx, dword [edi + 0x78]
xor ecx, ecx
mov dword [esp + 0x20], ecx
test esi, esi
je 0x10031cae
mov eax, dword [esp + 0x18]
mov esi, edx
mov edx, dword [edi + 0x58]
mov dword [esi - 4], ebx
mov dword [esi], ebx
test edx, edx
je 0x10031c94
lea eax, [esp + 0x30]
push eax
mov eax, dword [edi + 0x5c]
imul eax, dword [esp + 0x14]
push 0
add eax, edx
mov edx, ecx
push eax
lea ecx, [edi + 0x60]
call fcn.10021a30
mov eax, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x18]
inc ecx
shr ebx, 1
add esi, 0x1c
mov dword [esp + 0x20], ecx
cmp ecx, eax
jb 0x10031c53
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
add edx, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
cmp eax, 6
jb 0x10031c40
mov ebx, dword [esp + 0x28]
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
jbe 0x10031d13
add ecx, 0x20
je 0x10031cfe
push ecx
call fcn.1000efa0
mov edx, eax
add esp, 4
test edx, edx
jne 0x10031d00
mov dword [edi + 0x54], eax
mov eax, dword [esp + 0x24]
mov dword [eax], 0x8007000e
jmp 0x10031f97
xor edx, edx
mov eax, edx
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
add edx, ecx
mov dword [edx - 4], ecx
jmp 0x10031d15
xor edx, edx
mov dword [edi + 0x54], edx
test edx, edx
je 0x10031b46
lea eax, [ebx*4]
push eax
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [esp + 0x2c], 3
je 0x10031d72
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x148]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call dword [0x100ae518]
call esi
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
test eax, eax
js 0x10031f97
mov eax, dword [esp + 0x54]
mov dword [edi + 0x6c], eax
mov eax, dword [esp + 0x88]
mov dword [edi + 0x18], eax
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x88]
xor eax, eax
mov dword [esp + 0x1c], esi
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], edx
lea ecx, [ecx]
xor ebx, ebx
test ecx, ecx
je 0x10031eb9
mov eax, dword [esp + 0x1c]
mov esi, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x6c]
cmp eax, 2
je 0x10031e2b
cmp eax, 3
je 0x10031e2b
push 0x38
call fcn.1000efa0
mov edx, eax
add esp, 4
test edx, edx
jne 0x10031dd3
mov ecx, dword [edi + 0x54]
shl esi, 2
mov dword [esi + ecx], eax
jmp 0x10031e89
mov eax, edx
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
lea eax, [edx + ecx]
mov edx, dword [esp + 0x10]
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
mov dword [eax + 0x14], ecx
mov dword [eax], 0x100015e0
mov dword [eax + 4], 0
mov dword [eax + 8], edi
mov byte [eax + 0x10], bl
mov byte [eax + 0x11], dl
mov ecx, dword [edi + 0x68]
and ecx, 0x4000004
neg ecx
sbb ecx, ecx
neg ecx
shl esi, 2
mov dword [eax + 0xc], ecx
mov dword [eax], 0x10001588
mov ecx, dword [edi + 0x54]
mov dword [esi + ecx], eax
jmp 0x10031e89
push 0x38
call fcn.1000efa0
mov edx, eax
add esp, 4
test edx, edx
je 0x10031e80
mov eax, edx
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
add edx, ecx
mov dword [edx - 4], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x10]
mov dword [edx + 0x14], eax
mov dword [edx + 4], 0
mov dword [edx], 0x100015e0
mov dword [edx + 8], edi
mov byte [edx + 0x10], bl
mov byte [edx + 0x11], cl
mov eax, dword [edi + 0x68]
and eax, 0x4000004
neg eax
sbb eax, eax
neg eax
mov dword [edx + 0xc], eax
mov eax, dword [edi + 0x54]
shl esi, 2
mov dword [esi + eax], edx
mov eax, dword [edi + 0x54]
cmp dword [esi + eax], 0
je 0x10031f05
mov esi, dword [esp + 0x20]
inc ebx
add dword [esp + 0x14], 0x1c
inc esi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], esi
cmp ebx, ecx
jb 0x10031da8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
add esi, dword [esp + 0x3c]
inc eax
add edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], esi
cmp eax, 6
jb 0x10031d90
cmp dword [esp + 0x2c], 1
jne 0x10031f97
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
test dword [eax + 0x220], 0x100
jne 0x10031f74
test dword [eax + 0x4c], 0x10000000
je 0x10031f74
xor eax, eax
jmp 0x10031f79
cmp dword [esp + 0x2c], 3
mov eax, dword [esp + 0x24]
mov dword [eax], 0x8007000e
je 0x10031f97
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
dec edx
cmp ecx, edx
jae 0x10031f97
lea eax, [ecx*8]
sub eax, ecx
lea ebx, [esp + 0x88]
sub edx, ecx
mov dword [esp + 0x28], edx
lea ebx, [ebx + eax*4]
mov esi, dword [edi + 0x14]
mov eax, dword [esi + 0x208]
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
mov esi, dword [esi + 0x14c]
mov ecx, esi
push eax
call dword [0x100ae518]
call esi
sub dword [esp + 0x28], 1
lea ebx, [ebx + 0x1c]
jne 0x10031f40
jmp 0x10031f97
mov eax, 1
test eax, eax
je 0x10031f97
lea ecx, [edi + 8]
call fcn.1002fdd0
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
jmp 0x10031f97
mov eax, dword [esp + 0x24]
mov dword [eax], 0x8876086c
mov ecx, dword [esp + 0x1574]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100a1500
mov esp, ebp
pop ebp
ret 0x24