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

Disassembly:
push 0xffffffffffffffff
push 0x75a718
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x28], esi
mov ecx, dword [esi + 0x14]
mov eax, 0x66666667
sub ecx, dword [esi + 0x10]
imul ecx
mov dword [esp + 0x44], 0
sar edx, 3
mov eax, edx
mov dword [esp + 0x1c], esi
shr eax, 0x1f
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0
add eax, edx
je 0x5407ef
xor edi, edi
mov dword [esp + 0x2c], edi
mov ebp, dword [esi + 0x10]
sub esp, 8
mov ebx, esp
mov dword [esp + 0x1c], esp
add ebp, edi
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ecx
test eax, eax
je 0x54062b
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov edi, dword [ebx + 4]
test edi, edi
je 0x540657
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x540657
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x540657
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esp + 0x38]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x20]
mov dword [ebx], eax
sub esp, 0x60
mov byte [esp + 0xac], 1
lea eax, [esp + 0xb4]
mov ecx, esp
push eax
call fcn.004acbb0
mov ecx, ebp
mov byte [esp + 0xac], 0
call fcn.0053f510
test al, al
jne 0x5406c9
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
lea ecx, [esi + 4]
mov dword [ecx + 0x14], 0xf
push 0x2a
mov dword [ecx + 0x10], 0
push str.rule_does_not_match_the_allocation_request
mov byte [ecx], al
call fcn.00409620
mov dword [esi], vtable.wbs::StringBase_char_.0
mov byte [esp + 0x60], 2
jmp 0x54079c
lea eax, [esp + 0x34]
mov ecx, ebp
push eax
call fcn.0053eab0
mov eax, dword [esp + 0x34]
cmp eax, 1
je 0x5407f2
cmp eax, 2
jne 0x54071d
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
lea ecx, [esi + 4]
mov dword [ecx + 0x14], 0xf
push 0x36
mov dword [ecx + 0x10], 0
push str.license_allocation_limit_reached__rule_specific_limit_
mov byte [ecx], 0
call fcn.00409620
mov dword [esi], vtable.wbs::StringBase_char_.0
mov byte [esp + 0x60], 3
jmp 0x54079c
mov edi, dword [esi + 0x14]
xor ebx, ebx
mov esi, dword [esi + 0x10]
cmp esi, edi
je 0x540740
lea esp, [esp]
mov ecx, esi
call fcn.0053f500
add esi, 0x14
add ebx, eax
cmp esi, edi
jne 0x540730
push dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
call fcn.005403f0
mov ecx, eax
call fcn.0053f500
sub ebx, eax
mov eax, dword [esp + 0xac]
sub eax, ebx
cmp eax, 1
jae 0x5407f2
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
lea ecx, [esi + 4]
mov dword [ecx + 0x14], 0xf
push 0x51
mov dword [ecx + 0x10], 0
push str.license_allocation_limit_reached__remaining_licenses_are_reserved_by_other_rules_
mov byte [ecx], 0
call fcn.00409620
mov dword [esi], vtable.wbs::StringBase_char_.0
mov byte [esp + 0x60], 4
sub esp, 0x20
mov ecx, ebp
push esp
call fcn.0053c930
lea ecx, [esp + 0x5c]
mov byte [esp + 0x80], 0
call fcn.0053fa20
mov esi, dword [esp + 0x28]
mov eax, 0x66666667
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
inc ebx
add edi, 0x14
mov dword [esp + 0x24], ebx
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
imul ecx
mov dword [esp + 0x2c], edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x5405f3
lea ebp, [esi + 0x1c]
sub esp, 0x20
mov ecx, ebp
push esp
call fcn.0053c930
lea ecx, [esp + 0x3c]
call fcn.0053fd60
cmp dword [esp + 0xa4], 0x10
jb 0x54081f
push dword [esp + 0x90]
call fcn.006f75a9
add esp, 4
cmp dword [esp + 0x8c], 0x10
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
jb 0x540853
push dword [esp + 0x78]
call fcn.006f75a9
add esp, 4
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
jb 0x540881
push dword [esp + 0x60]
call fcn.006f75a9
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x34
ret 0x64