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

Disassembly:
push 0xffffffffffffffff
push 0x868d58
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov dword [esp + 0x38], ecx
xor ebp, ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], 0xa
lea eax, [esp + 0x18]
push eax
push 0x40d394
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 1
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
xor ebx, ebx
call fcn.004b65f0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x64], 2
cmp dword [eax - 0xc], ebp
je 0x5263cc
cmp ebx, ebp
je 0x526324
cmp ebx, 1
jne 0x5262fc
lea edx, [esp + 0x3c]
push edx
push 0x4071f8
push eax
call fcn.00803d5e
add esp, 0xc
jmp 0x526324
cmp ebx, 2
jne 0x526316
lea ecx, [esp + 0x20]
push ecx
push 0x403a48
push eax
call fcn.00803d5e
add esp, 0xc
jmp 0x526324
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x48]
call fcn.004b34a0
lea eax, [esp + 0x18]
push eax
push 0x40d394
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x78]
call fcn.004b65f0
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [esp + 0x64], 3
cmp eax, esi
je 0x526399
cmp dword [esi + 0xc], ebp
lea edi, [esi + 0xc]
jl 0x52638b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x52638b
push eax
call fcn.004a9b50
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x526380
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x1c], ebp
xor ebp, ebp
jmp 0x526399
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004a8db0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
inc ebx
mov byte [esp + 0x64], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5263bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], ebp
jne 0x5262de
add eax, 0xfffffff0
mov byte [esp + 0x64], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5263ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x20], ebp
je 0x5264e0
lea ecx, [esp + 0x2c]
push 1
push ecx
call fcn.005c2360
add esp, 8
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 4
call fcn.004a8f10
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx - 0xc]
mov byte [esp + 0x64], 5
cmp esi, ebp
jge 0x526433
push 0x80070057
call fcn.004a8210
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x526452
push esi
lea ecx, [esp + 0x1c]
call fcn.004a8a90
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005bc290
add esp, 8
cmp eax, ebp
jl 0x526429
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x526429
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp esi, ebp
je 0x526496
mov eax, dword [esp + 0x44]
cmp eax, ebp
jne 0x5265e7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x64], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5264bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x64], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5264e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x38]
push ebp
push ebp
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esi + 0xf18]
call fcn.00554a00
mov ecx, dword [esp + 0x40]
cmp ecx, ebp
jl 0x526508
mov eax, dword [esp + 0x3c]
jg 0x52650c
cmp eax, ebp
ja 0x52650c
xor eax, eax
xor ecx, ecx
push ecx
push eax
mov ecx, esi
call fcn.00522110
mov byte [esp + 0x64], 0
cmp dword [esp + 0x4c], ebp
jbe 0x52657c
mov edi, 1
mov esi, dword [esp + 0x44]
xor eax, eax
cmp esi, ebp
setne al
cmp eax, ebp
je 0x526814
mov edx, dword [esi]
mov dword [esp + 0x44], edx
mov eax, dword [esi + 8]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52655d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x54]
mov dword [esi], ecx
sub dword [esp + 0x4c], edi
mov dword [esp + 0x54], esi
jne 0x526576
lea ecx, [esp + 0x44]
call fcn.004afe70
cmp dword [esp + 0x4c], ebp
ja 0x526525
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x54], ebp
cmp eax, ebp
je 0x5265a5
mov esi, dword [eax]
push eax
call fcn.00803053
add esp, 4
mov eax, esi
cmp esi, ebp
jne 0x526590
mov dword [esp + 0x50], ebp
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov dword [esp + 0x64], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5265cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 4
mov eax, dword [esp + 0x28]
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x526814
mov ecx, dword [eax]
lea ebp, [eax + 8]
mov eax, dword [ebp]
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004a8f10
mov eax, dword [esp + 0x14]
push eax
mov byte [esp + 0x68], 6
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov ecx, dword [esp + 0x14]
sub eax, esi
sar eax, 1
mov ebx, eax
mov eax, dword [ecx - 0xc]
test eax, eax
js 0x526429
mov edx, dword [ecx - 8]
mov esi, 1
sub esi, dword [ecx - 4]
sub edx, eax
or edx, esi
jge 0x526652
push eax
lea ecx, [esp + 0x18]
call fcn.004a8a90
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005bc290
add esp, 8
test eax, eax
js 0x526429
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x526429
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x14]
xor edx, edx
mov word [ecx + eax*2], dx
test esi, esi
je 0x5267de
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00801f5b
add esp, 8
test eax, eax
je 0x5267de
mov esi, dword [esp + 0x18]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x5266da
cmp eax, dword [esi - 0x10]
jne 0x5266da
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x526712
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x52681e
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x24], edi
push ebx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
mov byte [esp + 0x6c], 7
call fcn.004aa4c0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 8
call fcn.004a9f20
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x64], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x526765
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov esi, dword [ebp]
lea edi, [eax - 0x10]
sub esi, 0x10
cmp edi, esi
je 0x5267c0
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x5267b4
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x5267b4
push edi
call fcn.004a9b50
add esp, 4
mov dword [esp + 0x34], eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x5267a8
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x34]
add eax, 0x10
mov dword [ebp], eax
jmp 0x5267c0
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebp
call fcn.004a8db0
mov byte [esp + 0x64], 6
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5267de
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x64], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x526803
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebp, ebp
cmp dword [esp + 0x28], ebp
jne 0x5265e3
jmp 0x526496
push 0x80004005
call fcn.004a8210
call fcn.004a8580
int3