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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57b7a0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x70], ebx
call fcn.005317b0
mov dword [esp + 0x40], eax
mov byte [eax + 0x19], 1
mov eax, dword [esp + 0x40]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x40]
mov dword [eax], eax
mov eax, dword [esp + 0x40]
mov dword [eax + 8], eax
mov dword [esp + 0x44], ebx
lea eax, [esp + 0x10]
push eax
mov ecx, 0x58c320
mov byte [esp + 0x74], 1
call fcn.0040ff50
mov byte [esp + 0x70], 2
mov eax, dword [esi]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
je 0x52fc25
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x52fc25
push ecx
push eax
call edi
test eax, eax
jne 0x52fc25
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [esp + 0x38], ecx
push str.rule
push eax
call fcn.00442540
cmp eax, ebx
jne 0x52fd0e
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52fbb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 0
mov eax, dword [esp + 0x40]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x40]
push ecx
mov esi, ecx
push edx
push esi
lea ecx, [esp + 0x44]
push ecx
mov edi, esi
call fcn.004c5e90
mov edx, dword [esp + 0x40]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x5c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
je 0x52fc81
mov edi, dword [esp + 0x5c]
call fcn.00417950
mov eax, dword [esp + 0x58]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.0052f0e0
test eax, eax
jne 0x52fc98
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x52fc55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x70], 0
call fcn.004c52f0
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x52fc81
mov edi, dword [esp + 0x5c]
call fcn.00417950
mov ecx, dword [esp + 0x58]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi]
cmp ecx, ebx
je 0x52fcbb
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x52fcbb
push eax
push ecx
call edi
test eax, eax
jne 0x52fcbb
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [esp + 0x38], edx
jmp 0x52fb7e
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52fce0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x70], 0
call fcn.004c52f0
lea esi, [esp + 0x54]
call fcn.004176b0
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x3c]
push ecx
push eax
push esi
call fcn.0052f5b0
lea ecx, [esp + 0x54]
call fcn.0052f980
mov esi, dword [esp + 0x58]
cmp esi, dword [esp + 0x5c]
jbe 0x52fd33
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 8]
cmp dword [eax + 8], ebx
mov dword [esp + 0x20], esi
je 0x52fd44
call fcn.00531010
mov esi, dword [esp + 0x5c]
cmp dword [esp + 0x58], esi
jbe 0x52fd54
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x20], esi
je 0x52ff58
mov edx, dword [esp + 0x40]
mov edi, dword [edx]
lea ebx, [esp + 0x3c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
test ebx, ebx
mov esi, dword [esp + 0x40]
je 0x52fd80
lea eax, [esp + 0x3c]
cmp ebx, eax
je 0x52fd86
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, esi
je 0x52ff3c
test ebx, ebx
jne 0x52fd98
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [ebx + 4]
jne 0x52fda3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x5c]
mov esi, dword [edi + 0xc]
jb 0x52fdb6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
push esi
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x52ff26
cmp edi, dword [ebx + 4]
jne 0x52fdda
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x14]
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.00410660
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x74], 3
cmp edi, dword [ebx + 4]
jne 0x52fe01
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x10]
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.00410660
add eax, 0x10
mov dword [esi], eax
lea esi, [esp + 0x3c]
mov byte [esp + 0x78], 2
call fcn.00531c60
add esp, 8
mov esi, eax
mov byte [esp + 0x70], 4
mov eax, dword [esi]
sub eax, 0x10
call fcn.00410660
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x70], 5
mov eax, dword [esi + 4]
sub eax, 0x10
call fcn.00410660
lea esi, [eax + 0x10]
mov dword [esp + 0x30], esi
mov eax, dword [ebp + 8]
push eax
lea eax, [esp + 0x30]
lea ebx, [esp + 0x4c]
mov byte [esp + 0x74], 6
call fcn.00531220
lea eax, [esi - 0x10]
mov byte [esp + 0x70], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52fe8f
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
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52feaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52fed4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52fef4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
cmp edi, dword [ecx + 4]
jne 0x52ff03
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [edi + 0xc]
mov edx, dword [edi - 0xc]
push edx
push edi
lea eax, [esp + 0x18]
push eax
call fcn.00410240
push 1
push 0x58cbf8
lea ecx, [esp + 0x18]
push ecx
call fcn.00410240
lea esi, [esp + 0x24]
call fcn.00531490
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
jmp 0x52fd70
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x5c]
jb 0x52ff4c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add dword [esp + 0x20], 4
xor ebx, ebx
jmp 0x52fd44
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x52ffa5
add eax, 0xffffffff
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
call fcn.004100a0
mov edi, dword [ebp + 0xc]
mov byte [esp + 0x70], 7
call fcn.004101e0
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52ffa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52ffca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 0
mov eax, dword [esp + 0x40]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x40]
push ecx
mov esi, ecx
push edx
push esi
lea ecx, [esp + 0x44]
push ecx
mov edi, esi
call fcn.004c5e90
mov edx, dword [esp + 0x40]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x5c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
je 0x53001e
mov edi, dword [esp + 0x5c]
call fcn.00417950
mov eax, dword [esp + 0x58]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8