Function at 0x545890
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x575ec6
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x10]
mov ebx, dword [ecx]
add eax, 0xc
mov ebp, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebp
nop
mov eax, dword [esp + 0x80]
mov edi, dword [eax + 0x10]
add eax, 0xc
test ebp, ebp
je 0x5458f5
cmp ebp, eax
je 0x5458fb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, edi
je 0x545de4
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
mov dword [esp + 0x18], 0
jbe 0x545919
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, edi
mov dword [esp + 0x3c], esi
nop
mov eax, dword [esp + 0x84]
mov edi, dword [eax + 8]
cmp dword [eax + 4], edi
jbe 0x545935
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x545d43
test ebp, ebp
jne 0x545947
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [ebp + 4]
jne 0x545952
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebx + 0x14]
cmp edi, dword [ebx + 0x18]
lea eax, [ebx + 0x10]
mov dword [esp + 0x14], eax
jbe 0x545967
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [ebx + 0x10]
mov dword [esp + 0x44], edi
mov dword [esp + 0x1c], eax
cmp ebx, dword [ebp + 4]
jne 0x54597d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 8]
cmp dword [eax + 4], edi
jbe 0x54598f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x14], ecx
je 0x54599f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x44], edi
je 0x545a79
mov edx, dword [esp + 0x84]
cmp esi, dword [edx + 8]
jb 0x5459bb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x18], 0x10
jb 0x5459c6
mov ecx, dword [esi + 4]
jmp 0x5459c9
lea ecx, [esi + 4]
lea eax, [esp + 0x24]
push eax
call fcn.00441ee0
mov esi, dword [esp + 0x44]
mov ebp, dword [esp + 0x14]
cmp esi, dword [ebp + 8]
mov edi, eax
jb 0x5459e8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x545dd5
mov eax, dword [edi]
jmp 0x545a00
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x545a26
test dx, dx
je 0x545a22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x545a26
add eax, 4
add ecx, 4
test dx, dx
jne 0x545a00
xor eax, eax
jmp 0x545a2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x24]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x545a50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x545d17
cmp esi, dword [ebp + 8]
jb 0x545a63
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add dword [esp + 0x44], 0x28
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
jmp 0x545972
cmp ebx, dword [ebp + 4]
jne 0x545a84
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x84]
cmp esi, dword [ecx + 8]
jb 0x545a96
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x80]
push edx
lea ecx, [ebx + 0xc]
call fcn.00546700
mov ecx, dword [eax]
mov eax, dword [esi + 0x5c]
cmp eax, 0xffffffff
je 0x545aca
push eax
call fcn.00546390
test eax, eax
je 0x545d17
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
cmp ebx, dword [ebp + 4]
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
jne 0x545aea
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
test eax, eax
je 0x545bcc
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x545bcc
mov ecx, dword [esp + 0x84]
cmp esi, dword [ecx + 8]
jb 0x545b2b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x30]
cmp ebx, dword [edx + 4]
jne 0x545b3a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebx + 0x18]
cmp dword [ebx + 0x14], ebp
lea edi, [ebx + 0x10]
jbe 0x545b4b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [ebp - 0x28]
cmp eax, dword [edi + 8]
mov dword [esp + 0x2c], ebp
ja 0x545b5c
cmp eax, dword [edi + 4]
jae 0x545b62
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add ebp, 0xffffffd8
cmp ebp, dword [edi + 8]
jb 0x545b70
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x64]
cmp eax, dword [ebp + 0xc]
jl 0x545b82
mov dword [esp + 0x1c], 0
jmp 0x545bcc
mov ecx, dword [esp + 0x84]
cmp esi, dword [ecx + 8]
jb 0x545b94
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x30]
cmp ebx, dword [edx + 4]
jne 0x545ba3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebx + 0x14]
cmp edi, dword [ebx + 0x18]
jbe 0x545bb4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [ebx + 0x18]
jb 0x545bbc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x64]
cmp eax, dword [edi + 0xc]
jg 0x545bcc
mov dword [esp + 0x20], 1
mov ecx, dword [esp + 0x84]
cmp esi, dword [ecx + 8]
jb 0x545bde
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push 0
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call fcn.00546580
mov edi, eax
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x30]
cmp ebx, dword [eax + 4]
jne 0x545c05
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x14]
push edi
call fcn.00546b60
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x545c37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x545c57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x545c77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x1c], 0
je 0x545d17
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
cmp esi, dword [edx + 4]
mov ecx, dword [esp + 0x20]
push ecx
jne 0x545c9a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esi + 0xc]
mov esi, dword [eax]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
mov dword [esp + 0x30], esp
mov ebx, esp
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x545ccd
cmp eax, dword [esi]
jne 0x545ccd
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x545d05
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x545ddf
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea eax, [eax + eax + 2]
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_memcpy_s]
add esp, 0x10
mov edx, dword [esp + 0x88]
add edi, 0x10
push edx
mov dword [ebx], edi
call fcn.00546430
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [eax + 8]
jb 0x545d2d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add dword [esp + 0x3c], 0x70
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
jmp 0x545920
cmp dword [esp + 0x18], 0
je 0x545db8
test ebp, ebp
jne 0x545d54
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [ebp + 4]
jne 0x545d5f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [ebp + 4]
lea edi, [ebx + 0xc]
jne 0x545d6d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test byte [0x619d18], 1
jne 0x545d9f
mov eax, 1
or dword [0x619d18], eax
mov dword [esp + 0x78], eax
call fcn.00544640
push 0x580fd0
call fcn.0056a011
add esp, 4
mov dword [esp + 0x78], 0xffffffff
lea edx, [edi + 4]
push edx
push ecx
push edi
mov ecx, 0x619d28
call fcn.00546890
add esp, 4
push eax
call fcn.00546980
lea esi, [esp + 0x30]
call fcn.00536bc0
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x84]
jmp 0x5458e0
push 0x80004005
call fcn.0040fcd0
call fcn.00410940
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 8