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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x573532
mov eax, dword fs:[0]
push eax
sub esp, 0xb60
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0xb58], eax
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0xb70]
mov dword fs:[0], eax
xor esi, esi
push 0x600
lea eax, [esp + 0x564]
mov edi, ecx
push esi
push eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x568], esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x400
lea ecx, [esp + 0x15c]
push esi
push ecx
mov dword [esp + 0x160], esi
call sub.MSVCR80.dll_memset
mov eax, dword [edi + 0x74]
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x535d05
lea edx, [esp + 0x64]
push edx
call eax
cmp eax, esi
je 0x535d05
mov eax, dword [esp + 0x64]
add eax, 0xfffffffe
cmp eax, 6
ja case.default.0x535a43
movzx eax, byte [eax + 0x5360d4]
jmp dword [eax*4 + 0x5360cc]
mov eax, dword [edi + 0x78]
cmp eax, esi
je 0x535d05
lea ecx, [esp + 0x154]
push ecx
jmp 0x535a7a
mov eax, dword [edi + 0x7c]
cmp eax, esi
mov dword [esp + 0x20], 1
je 0x535d05
lea edx, [esp + 0x55c]
push edx
call eax
test al, al
je 0x535d05
call fcn.0054d700
mov dword [esp + 0x28], eax
mov byte [eax + 0x21], 1
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 8], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0xb78], esi
call fcn.0054d700
mov dword [esp + 0x44], eax
mov byte [eax + 0x21], 1
mov eax, dword [esp + 0x44]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x44]
mov dword [eax], eax
mov eax, dword [esp + 0x44]
mov dword [eax + 8], eax
mov dword [esp + 0x48], esi
lea eax, [edi + 0x80c]
push eax
mov dword [esp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x60], 1
lea ebx, [edi + 0x800]
lea eax, [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0xb78], 2
mov dword [esp + 0x38], ebx
je 0x535b2a
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x28]
push ecx
mov esi, ecx
push edx
push esi
lea ecx, [esp + 0x24]
push ecx
mov edi, esi
call fcn.00536660
mov eax, esi
call fcn.00536730
xor esi, esi
cmp dword [esp + 0x20], esi
mov dword [esp + 0x20], esi
jne 0x535c02
cmp dword [esp + 0x154], esi
jbe 0x535cc5
lea edi, [esp + 0x158]
lea esp, [esp]
mov edx, dword [edi]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov ax, word [edi + 4]
lea ecx, [esp + 0x70]
push ecx
lea ebx, [esp + 0x18]
lea esi, [esp + 0x28]
mov dword [esp + 0x18], edx
mov word [esp + 0x1c], ax
call fcn.00536580
mov esi, dword [eax]
test esi, esi
mov edx, dword [esp + 0x28]
mov ebx, dword [eax + 4]
mov dword [esp + 0x34], edx
je 0x535b94
lea eax, [esp + 0x24]
cmp esi, eax
je 0x535b9a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x34]
je 0x535bb3
push ebx
push esi
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.005362d0
jmp 0x535bde
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
push edx
lea eax, [esp + 0x7c]
push eax
lea ebx, [esp + 0x48]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 1
call fcn.005361d0
mov eax, dword [esp + 0x20]
add eax, 1
add edi, 8
cmp eax, dword [esp + 0x154]
mov dword [esp + 0x20], eax
jb 0x535b50
mov esi, dword [esp + 0x38]
jmp 0x535cc7
cmp dword [esp + 0x55c], esi
jbe 0x535cc5
lea edi, [esp + 0x560]
mov ecx, dword [edi]
mov dx, word [edi + 4]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x68]
push eax
lea ebx, [esp + 0x18]
lea esi, [esp + 0x28]
mov dword [esp + 0x18], ecx
mov word [esp + 0x1c], dx
call fcn.00536580
mov esi, dword [eax]
test esi, esi
mov ecx, dword [esp + 0x28]
mov ebx, dword [eax + 4]
mov dword [esp + 0x34], ecx
je 0x535c5a
lea edx, [esp + 0x24]
cmp esi, edx
je 0x535c60
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x34]
je 0x535c79
push ebx
push esi
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.005362d0
jmp 0x535ca4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], edx
push ecx
lea edx, [esp + 0x7c]
push edx
lea ebx, [esp + 0x48]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 1
call fcn.005361d0
mov eax, dword [esp + 0x20]
add eax, 1
add edi, 0xc
cmp eax, dword [esp + 0x55c]
mov dword [esp + 0x20], eax
jb 0x535c16
mov esi, dword [esp + 0x38]
jmp 0x535cc7
mov esi, ebx
cmp dword [esp + 0x2c], 0
jne 0x535d29
cmp dword [esp + 0x48], 0
jne 0x535d29
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x40]
mov byte [esp + 0xb78], 0
call fcn.005369d0
lea eax, [esp + 0x24]
mov dword [esp + 0xb78], 0xffffffff
call fcn.005369d0
mov ecx, dword [esp + 0xb70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb58]
xor ecx, esp
call fcn.00569ed6
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ecx, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
test ecx, ecx
mov edi, dword [esi + 4]
je 0x535d43
cmp ecx, esi
je 0x535d49
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x34], edi
je 0x535e1e
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
lea esi, [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
test esi, esi
mov edi, dword [esp + 0x28]
je 0x535d77
lea edx, [esp + 0x24]
cmp esi, edx
je 0x535d7d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, edi
je 0x535e08
cmp dword [esp + 0x30], 0
jne 0x535d92
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp ecx, dword [eax + 4]
jne 0x535da5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x535daf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
jne 0x535dba
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x10]
cmp edx, dword [ebx + 0x10]
jne 0x535dce
mov eax, dword [eax + 0x14]
cmp eax, dword [ebx + 0x14]
je 0x535de1
lea esi, [esp + 0x14]
call fcn.00536bc0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x535d67
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0x70]
push eax
push esi
call fcn.005362d0
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x34], edx
jmp 0x535d34
lea esi, [esp + 0x30]
call fcn.00536bc0
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
jmp 0x535d38
mov eax, dword [esp + 0x44]
mov ebx, dword [eax]
lea eax, [esp + 0x40]
mov edi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
test edi, edi
mov esi, dword [esp + 0x44]
je 0x535e42
lea ecx, [esp + 0x40]
cmp edi, ecx
je 0x535e48
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, esi
je 0x535f30
mov edx, dword [esp + 0x3c]
cmp dword [edx + 0x824], 0
je 0x535edc
test edi, edi
jne 0x535e6b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [edi + 4]
jne 0x535e76
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x20]
lea esi, [ebx + 0x10]
push eax
call fcn.004399c0
mov byte [esp + 0xb7c], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.00410660
mov ecx, dword [esp + 0x40]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ecx + 0x824]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x14]
call eax
mov byte [esp + 0xb78], 2
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 0x535edc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x535ee6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [edi + 4]
jne 0x535ef1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], ecx
push eax
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], 1
call fcn.005361d0
lea esi, [esp + 0x14]
call fcn.00536bc0
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
jmp 0x535e32
mov edx, dword [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0x824], 0
je 0x535ce0
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx]
lea ebx, [esp + 0x24]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov edi, edi
test ebx, ebx
mov edi, dword [esp + 0x28]
je 0x535f70
lea edx, [esp + 0x24]
cmp ebx, edx
je 0x535f76
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x535ce0
lea eax, [esp + 0x84]
call fcn.0048b430
test ebx, ebx
mov byte [esp + 0xb78], 4
mov byte [esp + 0xb4], 0
jne 0x535fa4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebx + 4]
jne 0x535faf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x20]
add esi, 0x10
push eax
call fcn.004399c0
add esp, 4
mov edi, eax
mov byte [esp + 0xb78], 5
mov ecx, dword [esp + 0x90]
cmp dword [ecx - 0xc], 0
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x53602d
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x536004
cmp dword [ecx - 8], 0
jl 0x5360c2
mov dword [ecx - 0xc], 0
mov ecx, dword [esp + 0x90]
mov word [ecx], 0
jmp 0x53602d
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x53601a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x90], eax
mov edx, dword [edi]
test edx, edx
jne 0x536037
xor eax, eax
jmp 0x53604f
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x536040
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x94]
call fcn.00410570
mov byte [esp + 0xb78], 4
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 0x536086
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x824]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x84]
push ecx
push eax
call edx
lea ecx, [esp + 0x84]
call fcn.00457210
lea esi, [esp + 0x14]
call fcn.00536bc0
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
jmp 0x535f60
push 0x80070057
call fcn.0040fcd0
dec edx
pop edx
push ebx
add byte [edi + 0x5a], bl
push ebx
add byte [eax], al
add byte [ecx], al
add dword [ecx], eax
add dword [ecx], eax
int3