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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5734bd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1a74
call fcn.0056a4b0
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x1a70], eax
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x1a88]
mov dword fs:[0], eax
push 0x190f
xor esi, esi
lea eax, [esp + 0x171]
mov ebx, ecx
push esi
push eax
mov dword [esp + 0x44], ebx
mov byte [esp + 0x178], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x34]
lea ecx, [ebx + 0x3c7e]
push edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
call fcn.0041a080
mov dword [esp + 0x1a90], esi
mov edi, dword [esp + 0x34]
mov ecx, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov edx, 1
sub edx, dword [edi - 4]
sub eax, ecx
or eax, edx
jge 0x538b0b
lea eax, [esp + 0x34]
call fcn.00410ad0
mov edi, dword [esp + 0x34]
push edi
lea eax, [esp + 0x170]
push 0x58df2c
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
mov eax, dword [ebx + 0xfc]
add esp, 0xc
cmp eax, esi
je 0x538b56
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x17c]
push 0x1910
push ecx
call eax
add esp, 0x18
test al, al
jne 0x538b7a
mov dword [esp + 0x1a90], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x538d47
call fcn.0054d700
mov dword [esp + 0x24], eax
mov byte [eax + 0x21], 1
mov eax, dword [esp + 0x24]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x24]
mov dword [eax], eax
mov eax, dword [esp + 0x24]
mov dword [eax + 8], eax
mov dword [esp + 0x28], esi
mov byte [esp + 0x1a90], 1
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, [ebx + 0x40a8]
push eax
mov dword [esp + 0x58], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x58], 1
add ebx, 0x409c
lea ecx, [esp + 0x20]
cmp ecx, ebx
mov byte [esp + 0x1a90], 3
mov dword [esp + 0x3c], ebx
je 0x538c1d
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
push eax
push ecx
push edx
mov esi, ecx
push esi
lea edx, [esp + 0x24]
push edx
mov edi, ecx
call fcn.00536660
mov eax, edi
call fcn.00536730
xor esi, esi
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x4c]
add eax, dword [esp + 0x50]
cmp byte [eax], 0
je 0x538cd5
cmp byte [eax + 0xd], 0
je 0x538cd5
mov edi, dword [eax + 2]
mov ax, word [eax + 6]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x94]
push ecx
lea ebx, [esp + 0x18]
lea esi, [esp + 0x24]
mov dword [esp + 0x18], edi
mov word [esp + 0x1c], ax
call fcn.00536580
mov esi, dword [eax]
test esi, esi
mov edx, dword [esp + 0x24]
mov ebx, dword [eax + 4]
mov dword [esp + 0x30], edx
je 0x538c89
lea eax, [esp + 0x20]
cmp esi, eax
je 0x538c8f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x30]
je 0x538cab
push ebx
push esi
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.005362d0
jmp 0x538cd5
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x8c]
push edx
lea ebx, [esp + 0x48]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 1
call fcn.005361d0
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, 0x40
mov dword [esp + 0x1c], eax
jl 0x538c21
cmp dword [esp + 0x28], 0
jne 0x538d77
cmp dword [esp + 0x48], 0
jne 0x538d77
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x40]
mov byte [esp + 0x1a90], 1
call fcn.005369d0
lea eax, [esp + 0x20]
mov byte [esp + 0x1a90], 0
call fcn.005369d0
mov dword [esp + 0x1a90], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x538d53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1a88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a70]
xor ecx, esp
call fcn.00569ed6
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
jmp 0x538d90
test ecx, ecx
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 4]
je 0x538d9f
cmp ecx, eax
je 0x538da5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x30], esi
je 0x538e79
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
lea esi, [esp + 0x20]
mov edi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
test esi, esi
mov ebx, dword [esp + 0x24]
je 0x538dd3
lea edx, [esp + 0x20]
cmp esi, edx
je 0x538dd9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x538e67
cmp dword [esp + 0x2c], 0
jne 0x538dee
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 4]
jne 0x538e01
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x538e0b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x538e16
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x10]
cmp edx, dword [edi + 0x10]
jne 0x538e2a
mov eax, dword [eax + 0x14]
cmp eax, dword [edi + 0x14]
je 0x538e3d
lea esi, [esp + 0x14]
call fcn.00536bc0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x538dc3
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x40]
push edx
lea eax, [esp + 0x88]
push eax
push ecx
call fcn.005362d0
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x30], edx
jmp 0x538d84
lea esi, [esp + 0x2c]
call fcn.00536bc0
mov ecx, dword [esp + 0x2c]
jmp 0x538d90
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
lea eax, [esp + 0x40]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jmp 0x538e90
test eax, eax
mov esi, dword [esp + 0x44]
je 0x538ea0
lea ecx, [esp + 0x40]
cmp eax, ecx
je 0x538ea6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x18], esi
je 0x539007
mov edx, dword [esp + 0x38]
cmp dword [edx + 0x40c0], 0
je 0x538fa3
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x538ecf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 4]
jne 0x538ede
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
add esi, 0x10
push ecx
call fcn.004399c0
mov byte [esp + 0x1a94], 4
mov esi, dword [esp + 0x20]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x538f28
cmp eax, dword [esi]
jne 0x538f28
mov ebx, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x538f64
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x539002
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.MSVCR80.dll_memcpy_s]
add esp, 0x10
mov ecx, dword [esp + 0x3c]
add ebx, 0x10
mov dword [edi], ebx
mov eax, dword [ecx + 0x40c0]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x14]
call eax
mov byte [esp + 0x1a90], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x538fa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x538fb1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 4]
jne 0x538fc0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], edx
push ecx
lea edx, [esp + 0x8c]
push edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 1
call fcn.005361d0
lea esi, [esp + 0x14]
call fcn.00536bc0
mov eax, dword [esp + 0x14]
jmp 0x538e90
jmp fcn.00410940
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 0x40c0], 0
jne 0x539065
lea eax, [esp + 0x40]
mov byte [esp + 0x1a90], 1
call fcn.005369d0
lea eax, [esp + 0x20]
mov byte [esp + 0x1a90], 0
call fcn.005369d0
mov dword [esp + 0x1a90], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x538d47
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx]
lea ebx, [esp + 0x20]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
test ebx, ebx
mov edi, dword [esp + 0x24]
je 0x539087
lea edx, [esp + 0x20]
cmp ebx, edx
je 0x53908d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x538d06
lea eax, [esp + 0x9c]
call fcn.0048b430
test ebx, ebx
mov byte [esp + 0x1a90], 5
mov byte [esp + 0xcc], 0
jne 0x5390bb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebx + 4]
jne 0x5390c6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x1c]
add esi, 0x10
push eax
call fcn.004399c0
add esp, 4
mov edi, eax
mov byte [esp + 0x1a90], 6
mov ecx, dword [esp + 0xa8]
cmp dword [ecx - 0xc], 0
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x539144
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x53911b
cmp dword [ecx - 8], 0
jl 0x5391d5
mov dword [ecx - 0xc], 0
mov ecx, dword [esp + 0xa8]
mov word [ecx], 0
jmp 0x539144
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x539131
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 + 0xa8], eax
mov edx, dword [edi]
test edx, edx
jne 0x53914e
xor eax, eax
jmp 0x539162
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x539153
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0xac]
call fcn.00410570
mov byte [esp + 0x1a90], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x539199
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x40c0]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x9c]
push ecx
push eax
call edx
lea ecx, [esp + 0x9c]
call fcn.00457210
lea esi, [esp + 0x14]
call fcn.00536bc0
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
jmp 0x539077
push 0x80070057
call fcn.0040fcd0
int3