Function at 0x10066ee0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path
Resolve function by parsing pe exports
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fce7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
push eax
mov dword [ebp - 0x14], ebx
call fcn.10030ef0
add esp, 4
test eax, eax
jne 0x10066f43
mov esi, dword [ebp + 0xc]
push 0x40
push 0x1000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov esi, dword [ebp + 8]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebp + 8], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xdc]
mov esi, dword [ebp + 8]
inc eax
push 0x5c
mov dword [ebx + 0xdc], eax
call fcn.100e49ff
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
mov dword [ebp - 4], 0
je 0x10066f80
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebx + 0xdc]
push ecx
push edx
push esi
mov ecx, eax
call fcn.10066d60
jmp 0x10066f82
xor eax, eax
mov ecx, dword [eax + 0xc]
push eax
mov dword [ebp + 0x10], ecx
lea ecx, [ebx + 0xe0]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0xc], eax
call fcn.10030790
mov eax, dword [ebx + 0xf4]
test eax, eax
jne 0x10067151
mov edx, dword [esi + 0x2c]
mov dword [ebx + 0xf4], edx
mov eax, dword [esi + 0x30]
mov dword [ebx + 0xf8], eax
mov ecx, dword [esi + 0x34]
mov eax, dword [ebx + 0x68]
lea edx, [ebx + 0x108]
inc ecx
push edx
push eax
mov dword [ebx + 0xfc], ecx
call fcn.10018100
mov eax, dword [ebx + 0x4a0]
add esp, 8
test eax, eax
jne 0x10066ffa
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [ebx + 0x4a0], 1
lea ecx, [ebp - 0x218]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x218]
push 0x5c
push edx
call fcn.100d29ba
mov edi, eax
add esp, 8
test edi, edi
je 0x1006703e
lea eax, [ebp - 0x218]
lea ecx, [ebx + 0x100]
push eax
mov byte [edi], 0
call fcn.100e865a
inc edi
push edi
jmp 0x10067050
lea ecx, [ebx + 0x100]
call fcn.100e84a8
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebx + 0x104]
call fcn.100e865a
cmp dword [esi + 0x2c], 2
je 0x10067070
mov eax, dword [ebx + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x100670bc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [ebp - 0x218]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
lea eax, [ebp + ecx - 0x218]
mov cl, byte [ebp + ecx - 0x218]
cmp cl, 0x5c
jne 0x100670aa
mov byte [eax], 0
lea eax, [ebp - 0x218]
lea ecx, [ebx + 0x100]
push eax
call fcn.100e865a
mov ecx, dword [ebx + 0x68]
push 0x10161efc
push ecx
lea ecx, [ebx + 0x418]
call fcn.10015370
mov edx, dword [ebx + 0x68]
push str.odbcdb
push edx
lea ecx, [ebx + 0x428]
call fcn.10015370
mov eax, dword [ebx + 0x68]
push str.cominf
push eax
lea ecx, [ebx + 0x458]
call fcn.10015370
xor edi, edi
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x10170af0
push edi
push 5
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
push edi
push str._EL_HideOwner
call fcn.100170a0
add esp, 0x14
lea ecx, [ebx + 0x464]
push eax
push 0x80
call fcn.100e54a2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x2d0], eax
jmp 0x10067169
mov eax, dword [ebx + 0xfc]
mov ecx, dword [esi + 0x34]
cmp eax, ecx
ja 0x10067160
mov eax, ecx
inc eax
xor edi, edi
mov dword [ebx + 0xfc], eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov eax, dword [esi + 0x48]
cmp eax, 0xffffffff
je 0x100671ae
mov edi, dword [eax + esi + 0x2c]
add edi, esi
mov dword [ebp - 0x60], edi
mov eax, dword [eax + esi + 0x24]
cmp eax, 0x38
jb 0x10067194
mov eax, 0x38
mov ecx, eax
mov esi, 0x10138930
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
xor edi, edi
mov ecx, dword [esi + 0x40]
cmp ecx, 0xffffffff
je 0x100671ce
mov eax, dword [ecx + esi + 0x2c]
mov edx, dword [ebp - 0x20]
add eax, esi
mov dword [edx + 0x28], eax
mov ecx, dword [ecx + esi + 0x24]
add ecx, eax
mov dword [edx + 0x2c], ecx
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x34], edi
cmp eax, 0xffffffff
je 0x100671e5
mov eax, dword [eax + esi + 0x2c]
add eax, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x34]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x50]
cmp ebx, 0xffffffff
je 0x10067250
mov ecx, dword [ebx + eax + 0x24]
test ecx, ecx
jle 0x10067250
push ecx
call fcn.100e49ff
mov ecx, dword [ebp + 8]
mov esi, eax
xor eax, eax
mov edi, esi
mov ecx, dword [ebx + ecx + 0x24]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 0x10]
call fcn.10030790
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], esi
mov edx, dword [ebx + eax + 8]
mov ecx, dword [ebx + eax + 0x24]
and edx, 0xffffffef
sub esi, eax
mov dword [ebx + eax + 0x28], ecx
mov dword [ebx + eax + 8], edx
mov dword [ebx + eax + 0x2c], esi
mov edx, dword [eax + 0x54]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100674d3
mov ecx, eax
mov eax, dword [ebp + 8]
push str._reloc1
mov ebx, dword [ecx + eax + 0x2c]
mov edx, dword [ecx + eax + 4]
lea esi, [ecx + eax]
add ebx, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], edx
lea edi, [esi + 0xc]
mov dword [ebp - 0x2c], ebx
push edi
call fcn.100d25ae
add esp, 8
test eax, eax
jne 0x100672a1
mov dword [ebp - 0x20], ebx
jmp 0x10067438
push str.import
push edi
call fcn.100d25ae
add esp, 8
test eax, eax
jne 0x10067348
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx]
lea edi, [ebx + 4]
mov esi, dword [ecx + 0x228]
mov ecx, dword [ebp + 0xc]
test esi, esi
mov dword [ecx + 0x38], edi
mov dword [ecx + 0x3c], eax
jle 0x100672f1
test eax, eax
jle 0x100672f4
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
add dword [eax + edx], esi
add eax, edx
add edi, 4
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
jne 0x100672dc
jmp 0x100672f4
lea edi, [edi + eax*4]
cmp byte [edi], 0
je 0x1006732f
mov ecx, dword [ebp - 0x14]
push edi
add ecx, 0x220
mov edx, dword [ecx + 8]
push edx
call fcn.100e3c17
mov eax, dword [ebp - 0x14]
push 0
lea ecx, [eax + 0x234]
call fcn.10030790
push edi
call fcn.10030fc0
add edi, eax
add esp, 4
cmp byte [edi], 0
jne 0x100672f9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x30], esi
mov eax, dword [edx + 0x228]
sub eax, esi
mov esi, dword [ebp - 0x1c]
mov dword [ecx + 0x34], eax
jmp 0x10067438
push str.export
push edi
call fcn.100d25ae
add esp, 8
test eax, eax
jne 0x10067438
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10030ef0
add esp, 4
test eax, eax
jne 0x10067438
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
add edx, 0xc
push edx
call fcn.100e8292
push 0x10124e40
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.100e88ad
mov edi, ebx
cmp byte [edi], 0
je 0x10067429
push edi
mov ebx, edi
call fcn.10030fc0
mov esi, dword [edi + eax]
mov ecx, dword [ebp + 8]
add edi, eax
add esi, ecx
add edi, 4
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x18], edi
call fcn.100e4989
lea eax, [ebp - 0x24]
push ebx
lea ecx, [ebp - 0x30]
push eax
push ecx
mov byte [ebp - 4], 3
call fcn.100e8766
mov edx, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov byte [ebp - 4], 4
lea ecx, [edx + 0x204]
call fcn.100e47db
lea ecx, [ebp - 0x30]
mov dword [eax], esi
mov byte [ebp - 4], 3
call fcn.100e851d
jmp 0x10067412
mov dword [ebp - 4], 1
call fcn.100e49c7
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
jmp 0x10067397
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.100e851d
test byte [esi + 8], 0x10
je 0x1006749c
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
cmp eax, ecx
jle 0x1006749c
push eax
call fcn.100e49ff
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x28]
mov edi, ebx
mov edx, ecx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
sub ecx, edx
xor eax, eax
lea edi, [edx + ebx]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 0x10]
call fcn.10030790
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ebx
mov ecx, dword [esi + 0x30]
xor edx, edx
test ecx, ecx
lea eax, [esi + 0x38]
jle 0x1006725d
mov edi, dword [ebp - 0x1c]
mov esi, eax
mov eax, dword [esi]
add esi, 4
mov ecx, eax
and eax, 7
shr ecx, 3
mov eax, dword [ebp + eax*4 - 0x60]
add ecx, ebx
add dword [ecx], eax
mov eax, dword [edi + 0x30]
inc edx
cmp edx, eax
jl 0x100674b1
jmp 0x1006725d
mov eax, dword [ebp + 8]
lea ebx, [eax + 0x58]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp + 0x10], eax
jle 0x10067627
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edi, dword [eax + 0x1ec]
lea esi, [edx*4]
shr edi, 2
mov dword [ecx + 0x40], edi
push esi
push 0
lea ecx, [eax + 0x1dc]
call fcn.10030ca0
mov eax, dword [ebp - 0x14]
push esi
push 0
lea ecx, [eax + 0x1f0]
call fcn.10030ca0
mov ecx, dword [ebp - 0x14]
push esi
add ecx, 0x1b4
push 0
call fcn.10030ca0
mov edx, dword [ebp - 0x14]
push esi
push 0
lea ecx, [edx + 0x1c8]
call fcn.10030ca0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x1006759d
lea edx, [edi*4]
mov ecx, edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov esi, dword [ebp - 0x28]
add eax, esi
test ecx, ecx
jl 0x10067587
mov edx, dword [ebp - 0x14]
add edx, 0x1b4
mov esi, dword [edx + 0x10]
shr esi, 2
cmp ecx, esi
jge 0x10067587
mov edx, dword [edx + 8]
mov esi, dword [ebp - 0x24]
mov dword [edx + esi], eax
mov eax, dword [ebp - 0x24]
add ebx, 4
add eax, 4
inc ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
jne 0x10067560
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x100675f0
lea edx, [edi*4]
mov ecx, edi
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov esi, dword [ebp - 0x28]
add eax, esi
test ecx, ecx
jl 0x100675da
mov edx, dword [ebp - 0x14]
add edx, 0x1c8
mov esi, dword [edx + 0x10]
shr esi, 2
cmp ecx, esi
jge 0x100675da
mov edx, dword [edx + 8]
mov esi, dword [ebp + 0x10]
mov dword [edx + esi], eax
mov eax, dword [ebp + 0x10]
add ebx, 4
add eax, 4
inc ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
jne 0x100675b3
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10067627
mov ecx, dword [eax]
mov edx, dword [eax + ecx*4 + 4]
lea eax, [eax + ecx*4 + 4]
mov ecx, dword [ebp + 0xc]
add eax, 4
test edi, edi
mov dword [ecx + 0x44], eax
mov dword [ecx + 0x48], edx
jle 0x10067627
test edx, edx
jle 0x10067627
mov esi, dword [ebp - 0x34]
mov ecx, eax
mov eax, dword [ecx]
add dword [eax + esi], edi
add eax, esi
add ecx, 4
dec edx
jne 0x1006761a
mov al, byte [ebx]
xor edi, edi
test al, al
mov dword [ebp - 0x30], ebx
mov esi, ebx
je 0x10067645
push esi
inc edi
call fcn.10030fc0
add esi, eax
add esp, 4
cmp byte [esi], 0
jne 0x10067634
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x160]
shr eax, 2
test edi, edi
mov dword [ebp + 0x10], eax
jle 0x100677a6
mov edx, eax
mov eax, dword [ebp + 0xc]
lea esi, [edi*4]
mov dword [eax + 0x4c], edx
mov dword [eax + 0x50], edi
mov eax, ecx
push esi
push 0
lea ecx, [eax + 0x18c]
call fcn.10030ca0
mov ecx, dword [ebp - 0x14]
push esi
push 0
add ecx, 0x164
call fcn.10030ca0
mov edx, dword [ebp - 0x14]
push esi
push 0
lea ecx, [edx + 0x150]
call fcn.10030ca0
mov eax, dword [ebp - 0x14]
push esi
push 0
lea ecx, [eax + 0x178]
call fcn.10030ca0
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
push 0xffffffffffffffff
lea ecx, [esi + edi]
push ecx
lea ecx, [edx + 0x1a0]
call fcn.100e3a7c
cmp byte [ebx], 0
je 0x100676f9
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x14]
mov eax, esi
push 0
push eax
push edi
mov ecx, ebx
inc esi
call fcn.10063d70
test eax, eax
je 0x10067db2
push edi
call fcn.10030fc0
add edi, eax
add esp, 4
cmp byte [edi], 0
jne 0x100676d3
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x100677a6
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100677a6
mov ecx, eax
mov eax, 2
mov esi, dword [ecx]
add ecx, 4
lea ecx, [ecx + esi*4]
mov esi, dword [ecx]
add ecx, 4
dec eax
jne 0x1006771b
test esi, esi
jle 0x1006774f
mov ebx, dword [ebp + 0x10]
mov edi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [edi]
mov edx, dword [ebp - 0x34]
add eax, edx
mov edx, dword [eax]
test edx, edx
je 0x10067743
add edx, ebx
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
add edi, 4
dec eax
mov dword [ebp - 0x18], eax
jne 0x10067732
mov eax, dword [ecx + esi*4]
lea ecx, [ecx + esi*4]
add ecx, 4
test eax, eax
jle 0x100677a6
mov edi, ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [edi]
mov eax, dword [ebp - 0x34]
add ecx, eax
mov eax, dword [ecx]
mov esi, eax
and eax, 0xdfffffff
mov edx, eax
and esi, 0x20000000
shr edx, 0x10
cmp edx, 1
jle 0x1006779a
mov ebx, dword [ebp + 0x10]
and eax, 0xffff
add ebx, edx
and ebx, 0xffff
shl ebx, 0x10
or ebx, eax
or ebx, esi
mov dword [ecx], ebx
mov eax, dword [ebp - 0x18]
add edi, 4
dec eax
mov dword [ebp - 0x18], eax
jne 0x10067761
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x44]
cmp edi, 0xffffffff
je 0x10067dc8
lea ecx, [ebp - 0x48]
call fcn.10030500
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x50], 0x10107888
mov dword [ebp - 0x4c], esi
mov ebx, 6
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], ebx
call fcn.100e4989
push 0x400
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 8
call fcn.100eccf6
mov eax, dword [ebp + 8]
push 0
mov byte [ebp - 4], 9
mov edx, dword [edi + eax + 0x2c]
mov ecx, dword [edi + eax + 0x28]
add edx, eax
push ecx
push edx
lea ecx, [ebp - 0xd0]
call fcn.100ecd42
push 0
push 0x1000
lea eax, [ebp - 0xd0]
push 1
push eax
lea ecx, [ebp - 0x114]
call fcn.100ec3e4
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0x50]
call fcn.1005faa0
lea ecx, [ebp - 0x114]
call fcn.100ec548
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 9
call fcn.100ec4c0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 8
call fcn.100ecd7f
mov dword [ebp - 4], ebx
call fcn.100e49c7
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x18], edx
mov edx, ecx
mov eax, ecx
shr edx, 3
neg eax
sbb eax, eax
mov dword [ebp - 0x28], edx
and eax, edi
mov dword [ebp - 0x1c], 0
test edx, edx
lea eax, [eax + edx*4]
mov dword [ebp - 0x2c], eax
jle 0x100679bf
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x24], eax
mov eax, dword [eax + 0x18]
test eax, eax
mov dword [ebp - 0x30], eax
jle 0x100679aa
mov ecx, dword [ebp - 0x24]
push 0
push ebx
lea edi, [ecx + 0x14]
mov ecx, edi
call fcn.1005e7d0
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x100678f9
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 1
jle 0x100678f9
mov edx, dword [ebp + 0x10]
and eax, 0xffff
add ecx, edx
and ecx, 0xffff
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
push ebx
mov ecx, edi
call fcn.1005f110
cmp eax, 1
jne 0x1006793e
add esi, 0x18
push esi
call fcn.10030fc0
add esi, eax
push esi
call fcn.10030fc0
lea esi, [esi + eax + 0xc]
push esi
call fcn.10030fc0
add esi, eax
add esp, 0xc
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10067936
mov ecx, dword [ebp - 0x18]
add eax, ecx
mov dword [esi], eax
jmp 0x1006799b
mov dword [esi], 0
jmp 0x1006799b
add esi, 0x18
push esi
call fcn.10030fc0
add esi, eax
push esi
call fcn.10030fc0
mov edx, dword [esi + eax + 0x1c]
lea eax, [esi + eax + 0x1c]
mov ecx, dword [eax + edx*4 + 4]
lea eax, [eax + edx*4 + 4]
lea esi, [eax + ecx + 4]
push esi
call fcn.10030fc0
mov ecx, dword [eax + esi + 0xc]
lea eax, [eax + esi + 0xc]
add esp, 0xc
add eax, 8
xor edx, edx
test ecx, ecx
jle 0x1006799b
mov esi, dword [eax]
cmp esi, 0xffffffff
je 0x1006798d
mov edi, dword [ebp - 0x18]
add esi, edi
mov dword [eax], esi
jmp 0x10067993
mov dword [eax], 0
add eax, 8
inc edx
cmp edx, ecx
jl 0x1006797d
mov eax, dword [ebp - 0x30]
inc ebx
cmp ebx, eax
jl 0x100678bd
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
inc eax
cmp eax, edx
mov dword [ebp - 0x1c], eax
jl 0x100678a1
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10067ccc
mov eax, dword [esi + 0x14c]
shr eax, 3
test eax, eax
jle 0x10067ccc
lea ecx, [ebp - 0x74]
call fcn.10030500
mov esi, 0x101020a4
mov dword [ebp - 0x74], esi
lea ecx, [ebp - 0x88]
call fcn.10030500
mov dword [ebp - 0x88], esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
mov byte [ebp - 4], 0xf
mov ebx, dword [eax]
lea edx, [eax + 4]
mov eax, ecx
mov dword [ebp + 0x10], edx
neg eax
sbb eax, eax
and eax, esi
lea esi, [ebp - 0x88]
push esi
lea esi, [ebp - 0x74]
shr ecx, 3
push esi
push ecx
mov ecx, dword [ebp - 0x14]
push eax
push ebx
push edx
mov edx, dword [ebp - 0x34]
push edx
call fcn.10066ca0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
mov esi, eax
shr esi, 3
neg eax
sbb eax, eax
xor edi, edi
and eax, ecx
mov dword [ebp - 0x28], esi
test esi, esi
lea eax, [eax + esi*4]
mov dword [ebp - 0x2c], eax
jle 0x10067a91
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + edi*4]
mov edx, dword [eax + 0x2c]
mov ecx, dword [eax + 0x18]
test edx, edx
jne 0x10067a6b
xor eax, eax
jmp 0x10067a6e
mov eax, dword [eax + 0x24]
lea edx, [ebp - 0x88]
push edx
lea edx, [ebp - 0x74]
push edx
push ecx
mov ecx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp + 0x10]
push ebx
push eax
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.10066ca0
inc edi
cmp edi, esi
jl 0x10067a57
test esi, esi
mov dword [ebp - 0x1c], 0
jle 0x10067c9d
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x10], 0
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0xa8]
call fcn.10030500
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 0x10
shr eax, 2
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x24]
mov eax, ecx
inc ecx
lea edi, [edx + 0x14]
mov dword [ebp + 0x10], ecx
push 0
push eax
mov ecx, edi
call fcn.1005e7d0
mov ebx, eax
test ebx, ebx
je 0x10067c72
mov esi, dword [ebx]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.100636c0
test eax, eax
je 0x10067bb6
test dword [eax + 0x14], 0x2000000
je 0x10067bb6
and esi, 0xffff
lea ecx, [ebp - 0xbc]
dec esi
push ecx
push ebx
mov ecx, edi
mov dword [ebp - 0xc4], esi
call fcn.1005f130
mov edx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x78]
push 0
neg edx
sbb edx, edx
mov dword [ebp - 0x98], 0
and edx, esi
neg eax
sbb eax, eax
mov dword [ebp - 0xb8], edx
and eax, ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0xa8]
push eax
push 9
mov dword [ebp - 0xac], edx
call dword [ecx + 0x78]
test eax, eax
je 0x10067bb6
mov ecx, dword [ebp - 0x98]
mov esi, dword [ebp - 0xa0]
mov edx, dword [ebp + 0x10]
mov eax, ecx
neg eax
sbb eax, eax
push ecx
and eax, esi
dec edx
push eax
push edx
mov ecx, edi
call fcn.1005e820
push eax
mov ecx, edi
call fcn.1005f1b0
mov eax, dword [ebp + 0x10]
mov ecx, edi
dec eax
push eax
call fcn.1005f110
test eax, eax
jne 0x10067acb
lea esi, [ebx + 0x18]
push esi
call fcn.10030fc0
add esi, eax
push esi
call fcn.10030fc0
mov ecx, dword [eax + esi + 0x18]
lea esi, [eax + esi + 0x18]
add esp, 8
test ecx, ecx
je 0x10067c1b
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x10067c15
mov edx, dword [ebp - 0x6c]
test edx, edx
je 0x10067c15
shr eax, 2
push ecx
push eax
push edx
call fcn.10031050
add esp, 0xc
cmp eax, 0xffffffff
je 0x10067c15
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + eax*4]
mov dword [esi], edx
jmp 0x10067c1b
mov dword [esi], 0
mov ebx, dword [esi + 4]
add esi, 4
add esi, 4
xor edi, edi
test ebx, ebx
jle 0x10067acb
mov ecx, dword [esi]
test ecx, ecx
je 0x10067c65
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x10067c5f
mov edx, dword [ebp - 0x6c]
test edx, edx
je 0x10067c5f
shr eax, 2
push ecx
push eax
push edx
call fcn.10031050
add esp, 0xc
cmp eax, 0xffffffff
je 0x10067c5f
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + eax*4]
mov dword [esi], edx
jmp 0x10067c65
mov dword [esi], 0
add esi, 4
inc edi
cmp edi, ebx
jl 0x10067c2e
jmp 0x10067acb
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0xa8], 0x10101c30
call fcn.10030700
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, ecx
mov dword [ebp - 0x1c], eax
jl 0x10067aa0
mov esi, 0x10101c30
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x88], esi
call fcn.10030700
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
mov dword [ebp - 0x74], esi
call fcn.10030700
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x14c]
mov edx, dword [ebp + 0xc]
shr eax, 3
mov dword [edx + 0x54], eax
lea eax, [ebp - 0x50]
shr ecx, 3
mov dword [edx + 0x58], ecx
push eax
lea ecx, [esi + 0x134]
call fcn.1005f090
lea ecx, [ebp - 0x48]
call fcn.10030700
mov dword [ebp - 0x50], 0x10107888
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0x11
call fcn.1005fa50
mov dword [ebp - 0x50], 0x10107894
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0x12
call fcn.10030700
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x48], 0x10101c30
call fcn.10030700
mov ecx, dword [ebp + 8]
jmp 0x10067dcb
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x188]
test eax, eax
jne 0x10067de1
mov dword [0x101710c0], 0
jmp 0x10067ded
mov edx, dword [esi + 0x180]
mov dword [0x101710c0], edx
cmp dword [ecx + 0x2c], 2
jne 0x10067dfa
lea eax, [ebp - 0x60]
int3
mov eax, dword [ecx + 0x3c]
pop edi
add eax, ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc