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

Disassembly:
push 0xffffffffffffffff
push 0x578f40
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x4c]
xor esi, esi
push 0x527ca0
mov ecx, ebx
mov dword [esp + 0x1c], esi
call fcn.005278d0
cmp eax, 1
jne 0x529d74
mov eax, dword [ebx + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
cmp eax, esi
je 0x529d74
lea eax, [ebx + 0x54]
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x34], 1
mov dword [esp + 0x44], esi
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx]
lea eax, [ebx + 0xc]
mov edx, eax
mov dword [esp + 0x14], 0xfffffffe
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
lea ebx, [ebx]
test edx, edx
mov esi, dword [ebx + 0x10]
lea eax, [ebx + 0xc]
je 0x5299be
cmp edx, eax
je 0x5299c4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x24], esi
je 0x529d69
mov eax, dword [ebx + 0x34]
mov eax, dword [eax]
lea ebp, [ebx + 0x30]
mov esi, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
test ebp, ebp
mov edi, dword [ebx + 0x34]
lea eax, [ebx + 0x30]
je 0x5299ee
cmp ebp, eax
je 0x5299f4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x529d4d
test ebp, ebp
jne 0x529a06
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebp + 4]
jne 0x529a11
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xc]
sub esp, 0x34
mov ebx, esp
mov dword [esp + 0x50], esp
sub eax, 0x10
mov dword [esp + 0x50], ebx
call fcn.00410660
add eax, 0x10
mov dword [ebx], eax
add ebx, 4
lea edi, [esi + 0x10]
push ebx
mov byte [esp + 0x7c], 1
call fcn.00527f20
mov byte [esp + 0x78], 0
mov ebx, dword [esp + 0x54]
test ebx, ebx
jne 0x529a52
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x58]
cmp edi, dword [ebx + 4]
jne 0x529a61
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ebx, [edi + 0xc]
call fcn.005284f0
test eax, eax
jne 0x529a87
lea esi, [esp + 0x28]
call fcn.0052d170
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x4c]
jmp 0x5299e0
cmp esi, dword [ebp + 4]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x529a94
call ebx
mov edx, dword [esp + 0x14]
cmp dword [esi + 0x10], edx
jle 0x529d49
cmp esi, dword [ebp + 4]
jne 0x529aa8
call ebx
mov eax, dword [esp + 0x20]
cmp edi, dword [eax + 4]
jne 0x529ab3
call ebx
mov ecx, dword [edi + 0xc]
mov ebp, dword [esp + 0x50]
mov edi, dword [ebp]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x529b0c
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x529b01
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x529b01
call fcn.00410660
mov dword [esp + 0x18], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x529af5
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [ebp], ecx
jmp 0x529b0c
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, ebp
call fcn.00410570
mov ebp, dword [esp + 0x58]
mov ecx, dword [esi + 0x28]
mov edi, dword [ebp]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x529b65
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x529b5a
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x529b5a
call fcn.00410660
mov dword [esp + 0x18], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x529b4e
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [ebp], ecx
jmp 0x529b65
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, ebp
call fcn.00410570
mov ebp, dword [esp + 0x5c]
mov ecx, dword [esi + 0x1c]
mov edi, dword [ebp]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x529bbe
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x529bb3
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x529bb3
call fcn.00410660
mov dword [esp + 0x18], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x529ba7
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [ebp], ecx
jmp 0x529bbe
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, ebp
call fcn.00410570
mov edx, dword [esp + 0x54]
mov ecx, dword [esi + 0x20]
mov edi, dword [edx]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x529c13
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x529c08
mov ebp, dword [eax]
cmp ebp, dword [edi]
jne 0x529c08
call fcn.00410660
mov ebp, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x529bfd
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x54]
add ebp, 0x10
mov dword [eax], ebp
jmp 0x529c13
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edx
call fcn.00410570
mov edx, dword [esp + 0x64]
mov ecx, dword [esi + 0x3c]
mov edi, dword [edx]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x529c6a
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x529c5d
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x529c5d
call fcn.00410660
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x529c52
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x64]
add ebp, 0x10
mov dword [ecx], ebp
jmp 0x529c6a
mov ebx, dword [ecx - 0xc]
mov eax, dword [esp + 0x64]
push ecx
call fcn.00410570
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov ecx, dword [edx]
mov edi, dword [ebp + 0x50]
add ebp, 0x50
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x529cc9
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x529cbe
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x529cbe
call fcn.00410660
mov dword [esp + 0x18], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x529cb2
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [ebp], ecx
jmp 0x529cc9
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, ebp
call fcn.00410570
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edi, dword [esp + 0x60]
push eax
mov eax, dword [esi + 0x24]
push ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x18]
push edx
push eax
mov ecx, edx
push ecx
mov edx, eax
push edx
push 0x5afcbc
push str._s__s__s__s_drv_s__s__s.zip
call fcn.00410c00
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
add esp, 0x20
or ecx, edx
jge 0x529d1b
mov ecx, esi
mov eax, edi
call fcn.00410610
mov ecx, dword [edi]
lea eax, [esi + 1]
push eax
push ecx
call dword [sym.imp.MSVCR80.dll__wcslwr_s]
add esp, 8
test esi, esi
jl 0x529d5f
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x529d5f
mov dword [eax - 0xc], esi
mov edx, dword [edi]
mov word [edx + esi*2], 0
mov dword [esp + 0x18], 1
mov ebx, dword [esp + 0x4c]
lea esi, [esp + 0x20]
call fcn.004c7290
mov edx, dword [esp + 0x20]
jmp 0x5299b0
push 0x80070057
call fcn.0040fcd0
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x1c