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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x156c
call fcn.1009f4a0
mov eax, dword [0x100a60a4]
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.1002f620
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 0x10031050
lea eax, [edi + 0x5c]
mov edx, esi
push eax
push ebx
push dword [esp + 0x18]
mov ecx, esi
call fcn.10021230
add esp, 0xc
test eax, eax
je 0x10031569
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 0x10031569
jb 0x100310ae
cmp ecx, 0x80000000
ja 0x10031569
mov esi, dword [esp + 0x2c]
mov dword [edi + 0x70], ecx
cmp esi, 2
je 0x100310ee
cmp esi, 3
je 0x100310ee
cmp esi, 1
jne 0x1003111b
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
test dword [eax + 0x220], 0x100
jne 0x100310e5
test dword [eax + 0x4c], 0x10000000
je 0x100310e5
xor eax, eax
jmp 0x100310ea
mov eax, 1
test eax, eax
je 0x1003111b
test ecx, ecx
je 0x1003110e
add ecx, 0x20
je 0x100311b7
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
jne 0x100311b9
xor eax, eax
mov dword [edi + 0x58], eax
test eax, eax
je 0x1003155d
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 0x100311d8
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
test dword [eax + 0x220], 0x100
jne 0x100311d1
test dword [eax + 0x4c], 0x10000000
je 0x100311d1
mov eax, esi
jmp 0x100311da
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 0x10031110
mov eax, 2
jmp 0x100311da
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 0x1003126e
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 0x10031254
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.10021540
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 0x10031213
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 0x10031200
mov ebx, dword [esp + 0x28]
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
jbe 0x100312b4
add ecx, 0x20
je 0x100313ce
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
jne 0x100313d0
xor edx, edx
mov dword [edi + 0x54], edx
test edx, edx
je 0x1003155d
lea eax, [ebx*4]
push eax
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [esp + 0x2c], 3
je 0x10031313
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x148]
mov ecx, esi
call dword [0x100ac510]
call esi
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
test eax, eax
js 0x10031573
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 0x10031483
mov eax, dword [esp + 0x1c]
mov esi, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
jmp 0x10031350
mov eax, dword [edi + 0x6c]
cmp eax, 2
je 0x100313f3
cmp eax, 3
je 0x100313f3
push 0x38
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
je 0x100313e6
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 0x10031453
xor edx, edx
mov eax, edx
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
add edx, ecx
mov dword [edx - 4], ecx
jmp 0x100312b6
mov ecx, dword [edi + 0x54]
xor eax, eax
shl esi, 2
mov dword [esi + ecx], eax
jmp 0x10031453
push 0x38
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
je 0x10031448
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 0x1003144a
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 0x100314cf
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 0x10031350
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 0x10031330
cmp dword [esp + 0x2c], 1
jne 0x10031573
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
test dword [eax + 0x220], 0x100
jne 0x10031544
test dword [eax + 0x4c], 0x10000000
je 0x10031544
xor eax, eax
jmp 0x10031549
cmp dword [esp + 0x2c], 3
mov eax, dword [esp + 0x24]
mov dword [eax], 0x8007000e
je 0x10031573
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
dec edx
cmp ecx, edx
jae 0x10031573
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 [0x100ac510]
call esi
sub dword [esp + 0x28], 1
lea ebx, [ebx + 0x1c]
jne 0x10031510
jmp 0x10031573
mov eax, 1
test eax, eax
je 0x10031573
lea ecx, [edi + 8]
call fcn.1002f3d0
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
jmp 0x10031573
mov eax, dword [esp + 0x24]
mov dword [eax], 0x8007000e
jmp 0x10031573
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.1009ebb0
mov esp, ebp
pop ebp
ret 0x24