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

Disassembly:
push 0xffffffffffffffff
push 0x100f019a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov eax, dword [esp + 0x68]
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov dword [esp + 0xc], ebp
je 0x100067ff
cmp dword [eax], ebp
je 0x100067ff
mov ecx, dword [0x10115ccc]
cmp eax, ecx
jne 0x1000641e
mov esi, dword [0x10115d08]
cmp esi, 0x10115cf8
jne 0x100063da
push 0x3000
call fcn.100ddc50
add esp, 4
mov esi, eax
mov edi, 0x200
mov eax, esi
push 0x10115cf8
push eax
add esi, 0x18
call fcn.10005ec0
dec edi
jne 0x100063c1
mov esi, dword [0x10115d08]
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
lea ecx, [esi + 0x10]
lea eax, [esi + 0x14]
mov dword [edx + 0x14], edi
push 0x10115d18
mov eax, dword [eax]
mov ecx, dword [ecx]
push esi
mov dword [eax + 0x10], ecx
call fcn.10005ec0
mov dword [esp + 0x1c], esi
cmp esi, ebp
mov dword [esp + 0x6c], 1
je 0x10006899
lea edx, [esp + 0x74]
push edx
push str._ROOT_
jmp 0x10006871
cmp dword [0x10115d34], 8
jne 0x10006496
mov esi, dword [0x10115d08]
cmp esi, 0x10115cf8
jne 0x10006462
push 0x3000
call fcn.100ddc50
add esp, 4
mov esi, eax
mov edi, 0x200
mov eax, esi
push 0x10115cf8
push eax
add esi, 0x18
call fcn.10005ec0
dec edi
jne 0x10006449
mov esi, dword [0x10115d08]
push esi
call fcn.10005ea0
push 0x10115d18
push esi
call fcn.10005ec0
mov dword [esp + 0x1c], esi
cmp esi, ebp
mov dword [esp + 0x6c], 2
je 0x10006899
lea eax, [esp + 0x74]
push eax
push str.....
jmp 0x10006871
mov esi, dword [0x10115d34]
mov dword [esp + 0x1c], ecx
inc esi
cmp ecx, ebp
mov dword [0x10115d34], esi
jne 0x100064b0
mov dword [0x10115ccc], eax
mov esi, dword [0x10115d08]
mov ecx, dword [eax + 0xc]
push ebx
mov ebx, dword [eax]
cmp esi, 0x10115cf8
mov dword [esp + 0x18], ecx
jne 0x100064f5
push 0x3000
call fcn.100ddc50
add esp, 4
mov esi, eax
mov edi, 0x200
mov eax, esi
push 0x10115cf8
push eax
add esi, 0x18
call fcn.10005ec0
dec edi
jne 0x100064dc
mov esi, dword [0x10115d08]
push esi
call fcn.10005ea0
push 0x10115d18
push esi
call fcn.10005ec0
mov dword [esp + 0x1c], esi
cmp esi, ebp
mov dword [esp + 0x70], 3
je 0x10006534
lea edx, [esp + 0x78]
mov ecx, esi
push edx
push 0x10108a68
call fcn.10007570
mov eax, dword [0x10115d10]
mov ebp, esi
inc eax
mov dword [0x10115d10], eax
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 0x2c]
test edx, edx
jle 0x10006799
add ecx, 0x30
mov dword [esp + 0x78], ecx
test eax, eax
je 0x10006567
push 0x2c
push 1
mov ecx, ebp
call fcn.10001e6b
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
mov eax, dword [ecx]
dec eax
cmp eax, 4
ja case.0x10006579.4
jmp dword [eax*4 + 0x100068b0]
mov edi, dword [ebx]
push 0x18
call fcn.10004a50
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
mov dword [esp + 0x70], 4
je 0x100065bc
lea edx, [esp + 0x28]
push edi
push edx
call fcn.10057600
or dword [esp + 0x10], 1
push eax
mov ecx, esi
mov byte [esp + 0x74], 5
call fcn.10004c30
mov esi, eax
jmp 0x100065be
xor esi, esi
mov al, byte [esp + 0x10]
mov dword [esp + 0x70], 0xffffffff
test al, 1
je 0x100065e4
mov ecx, dword [esp + 0x10]
push 1
and ecx, 0xfffffffe
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x2c]
call fcn.10002040
mov eax, dword [0x100f7360]
push eax
jmp 0x1000665f
mov ecx, dword [ebx]
push 0x18
mov dword [esp + 0x20], ecx
call fcn.10004a50
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
mov dword [esp + 0x70], 7
je 0x10006630
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push edx
push eax
call fcn.100576f0
or dword [esp + 0x10], 2
push eax
mov ecx, esi
mov byte [esp + 0x74], 8
call fcn.10004c30
mov esi, eax
jmp 0x10006632
xor esi, esi
mov al, byte [esp + 0x10]
mov dword [esp + 0x70], 0xffffffff
test al, 2
je 0x10006658
mov ecx, dword [esp + 0x10]
push 1
and ecx, 0xfffffffd
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x3c]
call fcn.10002040
mov ecx, dword [0x100f7360]
push ecx
push 0
push esi
mov ecx, ebp
call fcn.100036f7
test esi, esi
je 0x10006773
mov edx, dword [0x10115d10]
push 1
dec edx
mov ecx, esi
mov dword [0x10115d10], edx
call fcn.10002040
push esi
call fcn.10004ae0
jmp 0x10006773
mov eax, dword [ebx]
test eax, eax
je 0x100066fb
push eax
lea edx, [esp + 0x5c]
push 0x22
push edx
call fcn.10009330
push 0x22
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x84], 0xa
push eax
call fcn.10009460
add esp, 0x18
mov ecx, dword [0x100f7360]
mov byte [esp + 0x70], 0xb
push ecx
push 0
push eax
mov ecx, ebp
call fcn.100036f7
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 0xa
call fcn.10002040
push 1
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], 0xffffffff
call fcn.10002040
jmp 0x10006773
mov edi, 0x10108a64
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x10108a64
jmp 0x1000676c
mov edx, dword [ebx]
push edx
call fcn.10006360
mov esi, eax
mov eax, dword [0x100f7360]
push eax
push 0
push esi
mov ecx, ebp
call fcn.100036f7
test esi, esi
je 0x10006773
mov eax, dword [0x10115d10]
push 1
dec eax
mov ecx, esi
mov dword [0x10115d10], eax
call fcn.10002040
push esi
call fcn.10005ea0
push 0x10115cf8
push esi
call fcn.10005ec0
jmp 0x10006773
mov edi, 0x10108a60
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x10108a60
mov ecx, ebp
call fcn.10007fa0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x78]
inc eax
mov edx, dword [ecx + 0x2c]
add edi, 4
add ebx, 4
cmp eax, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], edi
jl 0x10006558
mov edx, dword [0x100f7360]
mov ecx, dword [ebp + 8]
sub edx, ecx
pop ebx
cmp edx, 1
ja 0x100067af
call fcn.100d029e
mov esi, dword [ebp + 8]
push 0
inc esi
mov ecx, ebp
push esi
call fcn.1000234b
test al, al
je 0x100067d4
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
add eax, ecx
push esi
mov ecx, ebp
mov byte [eax], 0x5d
call fcn.100044e0
mov eax, dword [0x10115d34]
mov ecx, dword [esp + 0x1c]
dec eax
pop edi
mov dword [0x10115d34], eax
mov eax, ebp
pop esi
mov dword [0x10115ccc], ecx
pop ebp
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 4
mov esi, dword [0x10115d08]
cmp esi, 0x10115cf8
jne 0x1000683a
push 0x3000
call fcn.100ddc50
add esp, 4
mov esi, eax
mov edi, 0x200
mov eax, esi
push 0x10115cf8
push eax
add esi, 0x18
call fcn.10005ec0
dec edi
jne 0x10006821
mov esi, dword [0x10115d08]
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
lea ecx, [esi + 0x10]
lea eax, [esi + 0x14]
mov dword [edx + 0x14], edi
push 0x10115d18
mov eax, dword [eax]
mov ecx, dword [ecx]
push esi
mov dword [eax + 0x10], ecx
call fcn.10005ec0
mov dword [esp + 0x20], esi
cmp esi, ebp
mov dword [esp + 0x6c], ebp
je 0x10006899
lea edx, [esp + 0x74]
push edx
push str._NULL_
mov ecx, esi
call fcn.10007570
mov eax, dword [0x10115d10]
pop edi
inc eax
mov dword [0x10115d10], eax
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 4
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x64
ret 4