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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3dc
mov eax, dword [0x100a70b4]
xor eax, esp
mov dword [esp + 0x3d8], eax
mov eax, dword [ebp + 0x2c]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x24]
push edi
push dword [ebp + 0x28]
mov edi, ecx
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 8]
push esi
mov dword [esp + 0x24], ecx
push ecx
lea ecx, [edi + 8]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
call fcn.1002f290
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x48], eax
mov eax, 0xffff
mov dword [edi + 0x68], esi
lea esi, [edi + 0x6c]
push esi
push dword [ebp + 0x20]
mov word [edi + 0x4e], ax
mov eax, dword [ebp + 0x20]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
push ebx
mov byte [edi + 0x4c], bl
mov dword [edi], 0x10001484
mov dword [edi + 8], 0x1000146c
mov dword [edi + 0x50], 0x10001420
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0xdc], 7
mov dword [edi + 0x64], eax
mov dword [edi + 0x60], 3
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], ecx
mov dword [edi + 0x78], edx
call fcn.100206f0
add esp, 0xc
test eax, eax
jne 0x1002dac4
mov eax, dword [esp + 0x14]
mov dword [eax], 0x8876086c
jmp 0x1002deb1
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x1002db01
cmp eax, 3
je 0x1002db01
cmp eax, 1
jne 0x1002db51
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
test dword [eax + 0x220], 0x100
jne 0x1002daf8
test dword [eax + 0x4c], 0x10000000
je 0x1002daf8
xor eax, eax
jmp 0x1002dafd
mov eax, 1
test eax, eax
je 0x1002db51
mov eax, dword [esi]
test eax, eax
je 0x1002db1b
add eax, 0x20
je 0x1002db33
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
jne 0x1002db35
xor eax, eax
mov dword [edi + 0x58], eax
test eax, eax
jne 0x1002db4a
mov eax, dword [esp + 0x14]
mov dword [eax], 0x8007000e
jmp 0x1002deb1
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 0x1002db1d
mov dword [edi + 0x68], 2
cmp ebx, 0x20
ja 0x1002dab5
push 0x380
lea eax, [esp + 0x64]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x30]
push 0x30
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x28]
add esp, 0xc
mov esi, dword [esp + 0x18]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 3
mov eax, dword [eax + 0x208]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x64]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
cmp esi, 1
jne 0x1002dbe8
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
test dword [eax + 0x220], 0x100
jne 0x1002dbe1
test dword [eax + 0x4c], 0x10000000
je 0x1002dbe1
mov eax, esi
jmp 0x1002dbea
mov eax, 2
jmp 0x1002dbea
mov eax, esi
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x1002dc60
mov ecx, dword [ebp + 0xc]
lea esi, [esp + 0x64]
mov edx, dword [ebp + 0x10]
cmp dword [edi + 0x58], 0
mov dword [esi - 4], ecx
mov dword [esi], edx
je 0x1002dc3c
lea ecx, [esp + 0x24]
mov edx, eax
push ecx
push 0
push dword [edi + 0x58]
lea ecx, [edi + 0x5c]
call fcn.100209e0
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
cmp ecx, 1
jbe 0x1002dc46
shr ecx, 1
mov dword [ebp + 0xc], ecx
cmp edx, 1
jbe 0x1002dc50
shr edx, 1
mov dword [ebp + 0x10], edx
inc eax
add esi, 0x1c
mov dword [esp + 0x20], eax
cmp eax, ebx
jb 0x1002dc02
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
jbe 0x1002dc90
add ecx, 0x20
je 0x1002dd65
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
jne 0x1002dd67
xor edx, edx
mov dword [edi + 0x54], edx
test edx, edx
je 0x1002db24
lea eax, [ebx*4]
push eax
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, 3
je 0x1002dcea
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 0x148]
mov ecx, esi
call dword [0x100ad4e8]
call esi
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
test eax, eax
js 0x1002deb1
mov eax, dword [esp + 0x44]
mov dword [edi + 0x68], eax
mov eax, dword [esp + 0x78]
mov dword [edi + 0x18], eax
mov esi, dword [esp + 0x10]
xor ebx, ebx
test esi, esi
je 0x1002ddf1
lea eax, [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x68]
cmp eax, 2
je 0x1002dd7d
cmp eax, 3
je 0x1002dd7d
push 0x38
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
je 0x1002ddcb
and eax, 0x1f
mov ecx, 0x20
sub ecx, eax
mov eax, dword [esp + 0x10]
add edx, ecx
mov dword [edx - 4], ecx
mov eax, dword [eax]
mov dword [edx + 0x14], eax
mov dword [edx], 0x100013c8
mov dword [edx + 4], 0
mov dword [edx + 8], edi
mov byte [edx + 0x10], bl
mov eax, dword [edi + 0x64]
and eax, 0x4000004
neg eax
sbb eax, eax
neg eax
mov dword [edx + 0xc], eax
mov dword [edx], 0x10001370
jmp 0x1002ddcd
xor edx, edx
mov eax, edx
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
add edx, ecx
mov dword [edx - 4], ecx
jmp 0x1002dc92
push 0x38
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
je 0x1002ddcb
and eax, 0x1f
mov ecx, 0x20
sub ecx, eax
mov eax, dword [esp + 0x10]
add edx, ecx
mov dword [edx - 4], ecx
mov eax, dword [eax]
mov dword [edx + 0x14], eax
mov dword [edx + 4], 0
mov dword [edx], 0x100013c8
mov dword [edx + 8], edi
mov byte [edx + 0x10], bl
mov eax, dword [edi + 0x64]
and eax, 0x4000004
neg eax
sbb eax, eax
neg eax
mov dword [edx + 0xc], eax
jmp 0x1002ddcd
xor edx, edx
mov eax, dword [edi + 0x54]
lea ecx, [ebx*4]
mov dword [ecx + eax], edx
mov eax, dword [edi + 0x54]
cmp dword [ecx + eax], 0
je 0x1002de21
add dword [esp + 0x10], 0x1c
inc ebx
cmp ebx, esi
jb 0x1002dd00
cmp dword [esp + 0x18], 1
jne 0x1002deb1
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
test dword [eax + 0x220], 0x100
jne 0x1002de9a
test dword [eax + 0x4c], 0x10000000
je 0x1002de9a
xor eax, eax
jmp 0x1002de9f
cmp dword [esp + 0x18], 3
mov eax, dword [esp + 0x14]
mov dword [eax], 0x8007000e
je 0x1002deb1
cmp ebx, esi
jae 0x1002deb1
lea eax, [ebx*8]
sub eax, ebx
lea ecx, [esp + 0x78]
sub esi, ebx
mov dword [esp + 0x10], esi
mov ebx, esi
lea ecx, [ecx + eax*4]
mov dword [esp + 0x1c], ecx
jmp 0x1002de60
mov esi, dword [edi + 0x14]
mov eax, dword [esi + 0x208]
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
mov esi, dword [esi + 0x14c]
mov ecx, esi
push eax
call dword [0x100ad4e8]
call esi
mov ecx, dword [esp + 0x1c]
add ecx, 0x1c
mov dword [esp + 0x1c], ecx
sub ebx, 1
jne 0x1002de60
jmp 0x1002deb1
mov eax, 1
test eax, eax
je 0x1002deb1
lea ecx, [edi + 8]
call fcn.1002f020
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov ecx, dword [esp + 0x3e4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret 0x28