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

Disassembly:
push 0xffffffffffffffff
push 0x1007dae8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10097060]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
lea edi, [esp + 0x18]
mov dword [esp + 0x74], ebx
call fcn.10014610
mov eax, dword [esp + 0x7c]
mov esi, dword [eax + 0x10]
push esi
mov word [esp + 0x48], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0x4c], eax
jne 0x10059d75
cmp esi, ebx
je 0x10059d75
push 0x8007000e
call fcn.10066a70
mov byte [esp + 0x74], 1
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jne 0x10059d90
push 0x80004003
call fcn.10066a70
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x44]
mov edx, dword [ecx]
lea eax, [esp + 0x30]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x5c]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x60]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x64]
mov esi, ecx
push ecx
mov ecx, dword [edx + 0xe8]
mov dword [esp + 0x48], ebx
mov dword [eax + 0xc], edi
call ecx
cmp eax, ebx
jge 0x10059dd6
push 0x10088d24
push esi
push eax
call fcn.10066a80
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x74], 3
cmp dword [esp + 0x18], ebx
jne 0x10059e00
push 0x80004003
call fcn.10066a70
mov esi, dword [esp + 0x18]
lea edi, [esp + 0x30]
call fcn.10017690
mov eax, dword [eax]
cmp eax, ebx
je 0x10059e21
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ebp, eax
push eax
mov dword [esp + 0x2c], ebp
call edx
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10059e31
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp ebp, ebx
jne 0x10059ee6
mov eax, dword [esp + 0x7c]
mov esi, dword [eax + 0x10]
push esi
mov word [esp + 0x48], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0x4c], eax
jne 0x10059e64
cmp esi, ebx
je 0x10059e64
push 0x8007000e
call fcn.10066a70
mov byte [esp + 0x74], 4
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jne 0x10059e7f
push 0x80004003
call fcn.10066a70
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x44]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x58]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x5c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x60]
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0x108]
push ecx
mov esi, ecx
call eax
cmp eax, ebx
jge 0x10059ebc
push 0x10088d24
push esi
push eax
call fcn.10066a80
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x74], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10059edf
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor al, al
jmp 0x1005a469
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x58]
lea edx, [esp + 0x24]
push edx
push ebp
mov dword [esp + 0x2c], ebx
call eax
cmp eax, ebx
jge 0x10059f08
push 0x10088d44
push ebp
push eax
call fcn.10066a80
cmp word [esp + 0x24], bx
je 0x1005a3b3
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], ebx
lea edi, [esp + 0x30]
mov esi, ebp
mov byte [esp + 0x74], 6
call fcn.100173d0
mov byte [esp + 0x74], 7
mov eax, dword [eax]
cmp eax, ebx
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
mov dword [ecx], eax
je 0x10059f47
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea edi, [esp + 0x20]
call fcn.100171e0
cmp eax, ebx
jge 0x10059f61
cmp eax, 0x80004002
je 0x10059f61
push eax
call fcn.10066a70
mov byte [esp + 0x74], 6
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10059f76
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x10099194]
mov edx, dword [eax + 0xc]
mov ecx, 0x10099194
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x74], 8
mov eax, dword [0x10099194]
mov edx, dword [eax + 0xc]
mov ecx, 0x10099194
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
push ecx
mov bl, 9
mov byte [esp + 0x78], bl
mov eax, esp
mov dword [esp + 0x38], esp
push eax
mov edi, str.name
call fcn.10003e00
mov byte [esp + 0x78], 0xa
mov ebp, dword [esp + 0x20]
test ebp, ebp
jne 0x10059fd6
push 0x80004003
call fcn.10066a70
lea ecx, [esp + 0x48]
push ecx
mov edi, ebp
mov byte [esp + 0x7c], bl
call fcn.10017410
mov esi, eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 0xb
call fcn.10003af0
mov byte [esp + 0x74], 0xc
mov eax, dword [eax]
test eax, eax
je 0x1005a00b
mov edx, dword [eax]
test edx, edx
jne 0x1005a011
xor eax, eax
jmp 0x1005a025
xor edx, edx
xor eax, eax
jmp 0x1005a025
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1005a016
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.10002470
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1005a07b
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1005a073
test esi, esi
je 0x1005a073
mov eax, dword [esi]
test eax, eax
je 0x1005a05a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x1005a06a
push eax
call fcn.10067257
add esp, 4
push esi
call fcn.10067257
add esp, 4
mov dword [esp + 0x2c], 0
lea edx, [esp + 0x44]
mov bl, 9
push edx
mov byte [esp + 0x78], bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x7c]
mov edi, dword [eax + 0xc]
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push ecx
call fcn.10003e00
test ebp, ebp
mov byte [esp + 0x78], 0xd
jne 0x1005a0b3
push 0x80004003
call fcn.10066a70
lea edx, [esp + 0x58]
push edx
mov edi, ebp
mov byte [esp + 0x7c], bl
call fcn.10017410
mov esi, eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 0xe
call fcn.10003af0
mov byte [esp + 0x74], 0xf
mov eax, dword [eax]
test eax, eax
je 0x1005a0e8
mov edx, dword [eax]
test edx, edx
jne 0x1005a0ee
xor eax, eax
jmp 0x1005a102
xor edx, edx
xor eax, eax
jmp 0x1005a102
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1005a0f3
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x24]
call fcn.10002470
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1005a158
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1005a150
test esi, esi
je 0x1005a150
mov eax, dword [esi]
test eax, eax
je 0x1005a137
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x1005a147
push eax
call fcn.10067257
add esp, 4
push esi
call fcn.10067257
add esp, 4
mov dword [esp + 0x30], 0
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x78], 9
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x80]
call fcn.10005150
mov ebp, dword [esp + 0x20]
mov edi, eax
mov esi, dword [edi]
add ebp, 0xfffffff0
sub esi, 0x10
cmp ebp, esi
je 0x1005a1d6
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1005a1c7
mov edx, dword [ebp]
cmp edx, dword [esi]
jne 0x1005a1c7
mov eax, ebp
call fcn.10001cb0
mov dword [esp + 0x34], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x1005a1bc
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x34]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x1005a1d6
mov eax, dword [esp + 0x20]
mov ebx, dword [eax - 0xc]
push eax
mov eax, edi
call fcn.10002470
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1005a28e
lea edi, [esp + 0x38]
call fcn.10017310
mov byte [esp + 0x74], 0x11
mov eax, dword [eax]
test eax, eax
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
mov dword [ecx], eax
je 0x1005a207
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x20]
call fcn.100171e0
test eax, eax
jge 0x1005a221
cmp eax, 0x80004002
je 0x1005a221
push eax
call fcn.10066a70
mov byte [esp + 0x74], 9
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1005a236
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x74], 8
cmp dword [esp + 0x1c], 0
je 0x1005a363
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1005a260
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov byte [esp + 0x74], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10059f76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10059f76
mov ecx, dword [esp + 0x7c]
mov esi, dword [ecx + 0x10]
mov ebx, 8
push esi
mov word [esp + 0x48], bx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [esp + 0x4c], eax
jne 0x1005a2bc
test esi, esi
je 0x1005a2bc
push 0x8007000e
call fcn.10066a70
mov byte [esp + 0x74], 0x10
cmp dword [esp + 0x18], 0
jne 0x1005a2d2
push 0x80004003
call fcn.10066a70
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x44]
call fcn.10021cf0
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x74], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005a30e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005a333
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x74], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1005a35c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
jmp 0x1005a469
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005a383
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005a3a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 3
mov ebp, dword [esp + 0x28]
xor ebx, ebx
mov ecx, dword [esp + 0x7c]
mov esi, dword [ecx + 0x10]
push esi
mov word [esp + 0x48], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0x4c], eax
jne 0x1005a3de
cmp esi, ebx
je 0x1005a3de
push 0x8007000e
call fcn.10066a70
mov byte [esp + 0x74], 0x12
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jne 0x1005a3f9
push 0x80004003
call fcn.10066a70
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x44]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x58]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x5c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x60]
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0x108]
push ecx
mov esi, ecx
call eax
cmp eax, ebx
jge 0x1005a436
push 0x10088d24
push esi
push eax
call fcn.10066a80
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x74], 0
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push ebp
call eax
mov dword [esp + 0x74], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1005a467
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4