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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x156c
call fcn.1009bf00
mov eax, dword [0x100a20a4]
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 + 0x1c], eax
mov ecx, dword [ebp + 0x28]
push esi
mov dword [esp + 0x2c], ecx
lea ecx, [edi + 8]
mov dword [esp + 0x18], ebx
push eax
mov dword [esp + 0x38], esi
call fcn.1002f030
mov eax, dword [ebp + 0x18]
mov ecx, 6
mov dword [edi + 0x48], eax
mov eax, 0xffff
mov word [edi + 0x4e], ax
mov eax, dword [ebp + 0x14]
mov byte [edi + 0x4c], bl
mov ebx, dword [ebp + 0x1c]
mov dword [edi + 0x6c], esi
mov esi, dword [ebp + 0xc]
mov dword [edi + 0x68], eax
lea eax, [edi + 0xf8]
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], ebx
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 0x10030a60
lea eax, [edi + 0x5c]
mov edx, esi
push eax
push ebx
push dword [esp + 0x18]
mov ecx, esi
call fcn.10020bd0
add esp, 0xc
test eax, eax
je 0x10030f79
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 0x10030f79
jb 0x10030abe
cmp ecx, 0x80000000
ja 0x10030f79
mov esi, dword [esp + 0x2c]
mov dword [edi + 0x70], ecx
cmp esi, 2
je 0x10030afe
cmp esi, 3
je 0x10030afe
cmp esi, 1
jne 0x10030b2b
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
test dword [eax + 0x220], 0x100
jne 0x10030af5
test dword [eax + 0x4c], 0x10000000
je 0x10030af5
xor eax, eax
jmp 0x10030afa
mov eax, 1
test eax, eax
je 0x10030b2b
test ecx, ecx
je 0x10030b1e
add ecx, 0x20
je 0x10030bc7
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
jne 0x10030bc9
xor eax, eax
mov dword [edi + 0x58], eax
test eax, eax
je 0x10030f6d
push 0x1500
lea eax, [esp + 0x74]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov eax, dword [eax + 0x208]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x44], eax
lea eax, [ecx + ecx*2]
add eax, eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x68]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x4c], 5
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], 0
cmp esi, 1
jne 0x10030be8
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
test dword [eax + 0x220], 0x100
jne 0x10030be1
test dword [eax + 0x4c], 0x10000000
je 0x10030be1
mov eax, esi
jmp 0x10030bea
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 0x10030b20
mov eax, 2
jmp 0x10030bea
mov eax, esi
mov esi, dword [esp + 0x10]
lea edx, [ecx*8]
sub edx, ecx
mov dword [esp + 0x54], eax
xor eax, eax
shl edx, 2
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x74]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
mov ebx, dword [edi + 0x78]
xor ecx, ecx
mov dword [esp + 0x20], ecx
test esi, esi
je 0x10030c7e
mov eax, dword [esp + 0x10]
mov esi, edx
mov edx, dword [edi + 0x58]
mov dword [esi - 4], ebx
mov dword [esi], ebx
test edx, edx
je 0x10030c64
lea eax, [esp + 0x30]
push eax
mov eax, dword [edi + 0x5c]
imul eax, dword [esp + 0x18]
push 0
add eax, edx
mov edx, ecx
push eax
lea ecx, [edi + 0x60]
call fcn.10020ee0
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 + 0x10]
inc ecx
shr ebx, 1
add esi, 0x1c
mov dword [esp + 0x20], ecx
cmp ecx, eax
jb 0x10030c23
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
add edx, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
cmp eax, 6
jb 0x10030c10
mov ebx, dword [esp + 0x28]
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
jbe 0x10030cc4
add ecx, 0x20
je 0x10030dde
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
jne 0x10030de0
xor edx, edx
mov dword [edi + 0x54], edx
test edx, edx
je 0x10030f6d
lea eax, [ebx*4]
push eax
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [esp + 0x2c], 3
je 0x10030d23
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x148]
mov ecx, esi
call dword [0x100a8504]
call esi
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
test eax, eax
js 0x10030f83
mov eax, dword [esp + 0x54]
mov dword [edi + 0x6c], eax
mov eax, dword [esp + 0x88]
mov dword [edi + 0x18], eax
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x88]
xor eax, eax
mov dword [esp + 0x1c], esi
xor edx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edx
mov edi, edi
xor ebx, ebx
test ecx, ecx
je 0x10030e93
mov eax, dword [esp + 0x1c]
mov esi, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
jmp 0x10030d60
mov eax, dword [edi + 0x6c]
cmp eax, 2
je 0x10030e03
cmp eax, 3
je 0x10030e03
push 0x38
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
je 0x10030df6
and eax, 0x1f
mov ecx, 0x20
sub ecx, eax
lea eax, [edx + ecx]
mov edx, dword [esp + 0x14]
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x18]
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 0x10030e63
xor edx, edx
mov eax, edx
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
add edx, ecx
mov dword [edx - 4], ecx
jmp 0x10030cc6
mov ecx, dword [edi + 0x54]
xor eax, eax
shl esi, 2
mov dword [esi + ecx], eax
jmp 0x10030e63
push 0x38
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
je 0x10030e58
and eax, 0x1f
mov ecx, 0x20
sub ecx, eax
add edx, ecx
mov dword [edx - 4], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x14]
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
jmp 0x10030e5a
xor edx, edx
mov eax, dword [edi + 0x54]
shl esi, 2
mov dword [esi + eax], edx
mov eax, dword [edi + 0x54]
cmp dword [esi + eax], 0
je 0x10030edf
mov esi, dword [esp + 0x20]
inc ebx
add dword [esp + 0x18], 0x1c
inc esi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], esi
cmp ebx, ecx
jb 0x10030d60
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
add esi, dword [esp + 0x3c]
inc eax
add edx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], esi
cmp eax, 6
jb 0x10030d40
cmp dword [esp + 0x2c], 1
jne 0x10030f83
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
test dword [eax + 0x220], 0x100
jne 0x10030f54
test dword [eax + 0x4c], 0x10000000
je 0x10030f54
xor eax, eax
jmp 0x10030f59
cmp dword [esp + 0x2c], 3
mov eax, dword [esp + 0x24]
mov dword [eax], 0x8007000e
je 0x10030f83
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
dec edx
cmp ecx, edx
jae 0x10030f83
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 edi, edi
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 [0x100a8504]
call esi
sub dword [esp + 0x28], 1
lea ebx, [ebx + 0x1c]
jne 0x10030f20
jmp 0x10030f83
mov eax, 1
test eax, eax
je 0x10030f83
lea ecx, [edi + 8]
call fcn.1002ede0
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
jmp 0x10030f83
mov eax, dword [esp + 0x24]
mov dword [eax], 0x8007000e
jmp 0x10030f83
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.1009b610
mov esp, ebp
pop ebp
ret 0x24