Function at 0x1005f880
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 0x100e3f2d
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.10030350
add esp, 4
test eax, eax
jne 0x1005f8e3
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.100d37b7
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
mov dword [ebp - 4], 0
je 0x1005f920
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebx + 0xdc]
push ecx
push edx
push esi
mov ecx, eax
call fcn.1005f700
jmp 0x1005f922
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.1002fbf0
mov eax, dword [ebx + 0xf4]
test eax, eax
jne 0x1005faf1
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.100176f0
mov eax, dword [ebx + 0x4a0]
add esp, 8
test eax, eax
jne 0x1005f99a
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.100c1faa
mov edi, eax
add esp, 8
test edi, edi
je 0x1005f9de
lea eax, [ebp - 0x218]
lea ecx, [ebx + 0x100]
push eax
mov byte [edi], 0
call fcn.100d7034
inc edi
push edi
jmp 0x1005f9f0
lea ecx, [ebx + 0x100]
call fcn.100d6e82
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebx + 0x104]
call fcn.100d7034
cmp dword [esi + 0x2c], 2
je 0x1005fa10
mov eax, dword [ebx + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x1005fa5c
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 0x1005fa4a
mov byte [eax], 0
lea eax, [ebp - 0x218]
lea ecx, [ebx + 0x100]
push eax
call fcn.100d7034
mov ecx, dword [ebx + 0x68]
push 0x1010eb54
push ecx
lea ecx, [ebx + 0x418]
call fcn.10014960
mov edx, dword [ebx + 0x68]
push str.odbcdb
push edx
lea ecx, [ebx + 0x428]
call fcn.10014960
mov eax, dword [ebx + 0x68]
push str.cominf
push eax
lea ecx, [ebx + 0x458]
call fcn.10014960
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 0x1011a180
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.10016690
add esp, 0x14
lea ecx, [ebx + 0x464]
push eax
push 0x80
call fcn.100d425a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x2d0], eax
jmp 0x1005fb09
mov eax, dword [ebx + 0xfc]
mov ecx, dword [esi + 0x34]
cmp eax, ecx
ja 0x1005fb00
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 0x1005fb4e
mov edi, dword [eax + esi + 0x2c]
add edi, esi
mov dword [ebp - 0x60], edi
mov eax, dword [eax + esi + 0x24]
cmp eax, 0x38
jb 0x1005fb34
mov eax, 0x38
mov ecx, eax
mov esi, 0x1010dba8
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 0x1005fb6e
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 0x1005fb85
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 0x1005fbf0
mov ecx, dword [ebx + eax + 0x24]
test ecx, ecx
jle 0x1005fbf0
push ecx
call fcn.100d37b7
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.1002fbf0
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 0x1005fe73
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.100c1b9e
add esp, 8
test eax, eax
jne 0x1005fc41
mov dword [ebp - 0x20], ebx
jmp 0x1005fdd8
push str.import
push edi
call fcn.100c1b9e
add esp, 8
test eax, eax
jne 0x1005fce8
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 0x1005fc91
test eax, eax
jle 0x1005fc94
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 0x1005fc7c
jmp 0x1005fc94
lea edi, [edi + eax*4]
cmp byte [edi], 0
je 0x1005fccf
mov ecx, dword [ebp - 0x14]
push edi
add ecx, 0x220
mov edx, dword [ecx + 8]
push edx
call fcn.100d2d06
mov eax, dword [ebp - 0x14]
push 0
lea ecx, [eax + 0x234]
call fcn.1002fbf0
push edi
call fcn.10030420
add edi, eax
add esp, 4
cmp byte [edi], 0
jne 0x1005fc99
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 0x1005fdd8
push str.export
push edi
call fcn.100c1b9e
add esp, 8
test eax, eax
jne 0x1005fdd8
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10030350
add esp, 4
test eax, eax
jne 0x1005fdd8
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
add edx, 0xc
push edx
call fcn.100d6c6c
push 0x10108278
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.100d7287
mov edi, ebx
cmp byte [edi], 0
je 0x1005fdc9
push edi
mov ebx, edi
call fcn.10030420
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.100d3741
lea eax, [ebp - 0x24]
push ebx
lea ecx, [ebp - 0x30]
push eax
push ecx
mov byte [ebp - 4], 3
call fcn.100d7140
mov edx, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov byte [ebp - 4], 4
lea ecx, [edx + 0x204]
call fcn.100d3593
lea ecx, [ebp - 0x30]
mov dword [eax], esi
mov byte [ebp - 4], 3
call fcn.100d6ef7
jmp 0x1005fdb2
mov dword [ebp - 4], 1
call fcn.100d377f
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
jmp 0x1005fd37
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.100d6ef7
test byte [esi + 8], 0x10
je 0x1005fe3c
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
cmp eax, ecx
jle 0x1005fe3c
push eax
call fcn.100d37b7
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.1002fbf0
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 0x1005fbfd
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 0x1005fe51
jmp 0x1005fbfd
mov eax, dword [ebp + 8]
lea ebx, [eax + 0x58]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp + 0x10], eax
jle 0x1005ffc7
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.10030100
mov eax, dword [ebp - 0x14]
push esi
push 0
lea ecx, [eax + 0x1f0]
call fcn.10030100
mov ecx, dword [ebp - 0x14]
push esi
add ecx, 0x1b4
push 0
call fcn.10030100
mov edx, dword [ebp - 0x14]
push esi
push 0
lea ecx, [edx + 0x1c8]
call fcn.10030100
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x1005ff3d
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 0x1005ff27
mov edx, dword [ebp - 0x14]
add edx, 0x1b4
mov esi, dword [edx + 0x10]
shr esi, 2
cmp ecx, esi
jge 0x1005ff27
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 0x1005ff00
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x1005ff90
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 0x1005ff7a
mov edx, dword [ebp - 0x14]
add edx, 0x1c8
mov esi, dword [edx + 0x10]
shr esi, 2
cmp ecx, esi
jge 0x1005ff7a
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 0x1005ff53
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1005ffc7
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 0x1005ffc7
test edx, edx
jle 0x1005ffc7
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 0x1005ffba
mov al, byte [ebx]
xor edi, edi
test al, al
mov dword [ebp - 0x30], ebx
mov esi, ebx
je 0x1005ffe5
push esi
inc edi
call fcn.10030420
add esi, eax
add esp, 4
cmp byte [esi], 0
jne 0x1005ffd4
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x160]
shr eax, 2
test edi, edi
mov dword [ebp + 0x10], eax
jle 0x10060146
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.10030100
mov ecx, dword [ebp - 0x14]
push esi
push 0
add ecx, 0x164
call fcn.10030100
mov edx, dword [ebp - 0x14]
push esi
push 0
lea ecx, [edx + 0x150]
call fcn.10030100
mov eax, dword [ebp - 0x14]
push esi
push 0
lea ecx, [eax + 0x178]
call fcn.10030100
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
push 0xffffffffffffffff
lea ecx, [esi + edi]
push ecx
lea ecx, [edx + 0x1a0]
call fcn.100d2bbd
cmp byte [ebx], 0
je 0x10060099
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x30]
mov eax, esi
push 0
push eax
push edi
mov ecx, ebx
inc esi
call fcn.1005c730
test eax, eax
je 0x10060752
push edi
call fcn.10030420
add edi, eax
add esp, 4
cmp byte [edi], 0
jne 0x10060073
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x10060146
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10060146
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 0x100600bb
test esi, esi
jle 0x100600ef
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 0x100600e3
add edx, ebx
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
add edi, 4
dec eax
mov dword [ebp - 0x18], eax
jne 0x100600d2
mov eax, dword [ecx + esi*4]
lea ecx, [ecx + esi*4]
add ecx, 4
test eax, eax
jle 0x10060146
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 0x1006013a
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 0x10060101
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x44]
cmp edi, 0xffffffff
je 0x10060768
lea ecx, [ebp - 0x48]
call fcn.1002f960
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x50], 0x100ee5d0
mov dword [ebp - 0x4c], esi
mov ebx, 6
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], ebx
call fcn.100d3741
push 0x400
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 8
call fcn.100db488
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.100db4d4
push 0
push 0x1000
lea eax, [ebp - 0xd0]
push 1
push eax
lea ecx, [ebp - 0x114]
call fcn.100dabee
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0x50]
call fcn.10058460
lea ecx, [ebp - 0x114]
call fcn.100dad52
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 9
call fcn.100dacca
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 8
call fcn.100db511
mov dword [ebp - 4], ebx
call fcn.100d377f
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 0x1006035f
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 0x1006034a
mov ecx, dword [ebp - 0x24]
push 0
push ebx
lea edi, [ecx + 0x14]
mov ecx, edi
call fcn.10057180
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x10060299
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 1
jle 0x10060299
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.10057ac0
cmp eax, 1
jne 0x100602de
add esi, 0x18
push esi
call fcn.10030420
add esi, eax
push esi
call fcn.10030420
lea esi, [esi + eax + 0xc]
push esi
call fcn.10030420
add esi, eax
add esp, 0xc
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100602d6
mov ecx, dword [ebp - 0x18]
add eax, ecx
mov dword [esi], eax
jmp 0x1006033b
mov dword [esi], 0
jmp 0x1006033b
add esi, 0x18
push esi
call fcn.10030420
add esi, eax
push esi
call fcn.10030420
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.10030420
mov ecx, dword [eax + esi + 0xc]
lea eax, [eax + esi + 0xc]
add esp, 0xc
add eax, 8
xor edx, edx
test ecx, ecx
jle 0x1006033b
mov esi, dword [eax]
cmp esi, 0xffffffff
je 0x1006032d
mov edi, dword [ebp - 0x18]
add esi, edi
mov dword [eax], esi
jmp 0x10060333
mov dword [eax], 0
add eax, 8
inc edx
cmp edx, ecx
jl 0x1006031d
mov eax, dword [ebp - 0x30]
inc ebx
cmp ebx, eax
jl 0x1006025d
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 0x10060241
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1006066c
mov eax, dword [esi + 0x14c]
shr eax, 3
test eax, eax
jle 0x1006066c
lea ecx, [ebp - 0x74]
call fcn.1002f960
mov esi, 0x100e9044
mov dword [ebp - 0x74], esi
lea ecx, [ebp - 0x88]
call fcn.1002f960
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.1005f640
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 0x10060431
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 0x1006040b
xor eax, eax
jmp 0x1006040e
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.1005f640
inc edi
cmp edi, esi
jl 0x100603f7
test esi, esi
mov dword [ebp - 0x1c], 0
jle 0x1006063d
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.1002f960
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.10057180
mov ebx, eax
test ebx, ebx
je 0x10060612
mov esi, dword [ebx]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.1005c080
test eax, eax
je 0x10060556
test dword [eax + 0x14], 0x2000000
je 0x10060556
and esi, 0xffff
lea ecx, [ebp - 0xbc]
dec esi
push ecx
push ebx
mov ecx, edi
mov dword [ebp - 0xc4], esi
call fcn.10057ae0
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 0x10060556
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.100571d0
push eax
mov ecx, edi
call fcn.10057b60
mov eax, dword [ebp + 0x10]
mov ecx, edi
dec eax
push eax
call fcn.10057ac0
test eax, eax
jne 0x1006046b
lea esi, [ebx + 0x18]
push esi
call fcn.10030420
add esi, eax
push esi
call fcn.10030420
mov ecx, dword [eax + esi + 0x18]
lea esi, [eax + esi + 0x18]
add esp, 8
test ecx, ecx
je 0x100605bb
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x100605b5
mov edx, dword [ebp - 0x6c]
test edx, edx
je 0x100605b5
shr eax, 2
push ecx
push eax
push edx
call fcn.100304b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x100605b5
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + eax*4]
mov dword [esi], edx
jmp 0x100605bb
mov dword [esi], 0
mov ebx, dword [esi + 4]
add esi, 4
add esi, 4
xor edi, edi
test ebx, ebx
jle 0x1006046b
mov ecx, dword [esi]
test ecx, ecx
je 0x10060605
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x100605ff
mov edx, dword [ebp - 0x6c]
test edx, edx
je 0x100605ff
shr eax, 2
push ecx
push eax
push edx
call fcn.100304b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x100605ff
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + eax*4]
mov dword [esi], edx
jmp 0x10060605
mov dword [esi], 0
add esi, 4
inc edi
cmp edi, ebx
jl 0x100605ce
jmp 0x1006046b
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0xa8], 0x100e8bd0
call fcn.1002fb60
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, ecx
mov dword [ebp - 0x1c], eax
jl 0x10060440
mov esi, 0x100e8bd0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x88], esi
call fcn.1002fb60
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
mov dword [ebp - 0x74], esi
call fcn.1002fb60
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.10057a40
lea ecx, [ebp - 0x48]
call fcn.1002fb60
mov dword [ebp - 0x50], 0x100ee5d0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0x11
call fcn.10058410
mov dword [ebp - 0x50], 0x100ee5dc
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0x12
call fcn.1002fb60
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x48], 0x100e8bd0
call fcn.1002fb60
mov ecx, dword [ebp + 8]
jmp 0x1006076b
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 0x10060781
mov dword [0x1011a750], 0
jmp 0x1006078d
mov edx, dword [esi + 0x180]
mov dword [0x1011a750], edx
cmp dword [ecx + 0x2c], 2
jne 0x1006079a
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