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

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
mov ebx, ecx
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x38]
call fcn.00405d90
mov edi, str.unlockCount
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, str.unlockCount
push ecx
push str.unlockCount
lea ecx, [esp + 0x3c]
call fcn.00406380
lea ecx, [esp + 0x11]
push ecx
lea ecx, [esp + 0x44]
call fcn.00405d90
mov edi, str.user
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, str.user
push ecx
push str.user
lea ecx, [esp + 0x48]
call fcn.00406380
lea edx, [esp + 0x34]
push 0
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00409fb0
mov edi, eax
add esp, 0xc
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], edi
call fcn.00406010
lea ecx, [esp + 0x34]
call fcn.00406010
lea ebp, [ebx + 0xa4]
mov ecx, ebp
call fcn.004145b0
xor esi, esi
test edi, edi
mov dword [esp + 0x1c], esi
jle 0x412c02
push esi
push str.unlockEntity
lea ecx, [esp + 0x84]
push str._s_d
push ecx
call fcn.005f106c
add esp, 0x10
lea edx, [esp + 0x11]
lea ecx, [esp + 0x58]
push edx
call fcn.00405d90
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x7c]
lea ecx, [esp + 0x7c]
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.00406380
lea edx, [esp + 0x10]
lea ecx, [esp + 0x4c]
push edx
call fcn.00405d90
mov edi, str.user
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, str.user
push ecx
push str.user
lea ecx, [esp + 0x54]
call fcn.00406380
lea eax, [esp + 0x58]
push 0
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.00409fb0
add esp, 0xc
lea ecx, [esp + 0x4c]
mov dword [esp + 0x14], eax
call fcn.00406010
lea ecx, [esp + 0x58]
call fcn.00406010
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x412bf1
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0xc]
mov edi, eax
test edi, edi
je 0x412bf1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, ebp
call fcn.005d3390
mov edx, dword [eax]
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
mov dword [esp + 0x1c], edx
call fcn.005d8060
mov ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx]
je 0x412af0
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
cmp edx, ecx
jge 0x412b2b
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], 0
call fcn.004b87c0
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
push edx
call fcn.005d82d0
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
call fcn.00414580
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov dword [eax + 0x14], 1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
mov esi, eax
lea eax, [esp + 0x12]
push eax
mov ecx, esi
call fcn.0046f660
push eax
lea ecx, [esp + 0x74]
call fcn.00405d90
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
lea ecx, [esp + 0x78]
call fcn.00408000
lea esi, [edi + 0x98]
lea eax, [esp + 0x13]
push eax
mov ecx, esi
call fcn.0046f660
push eax
lea ecx, [esp + 0x68]
call fcn.00405d90
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
lea ecx, [esp + 0x6c]
call fcn.00408000
mov eax, dword [ebx]
lea ecx, [esp + 0x64]
push 0
push ecx
lea edx, [esp + 0x78]
lea ecx, [esp + 0x48]
push edx
push ecx
mov ecx, ebx
call dword [eax + 0x14]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
cmp esi, eax
je 0x412bd2
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 0x20]
cmp eax, dword [esp + 0x14]
jne 0x412bc7
mov ecx, dword [esi]
push 1
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov eax, dword [esp + 0x44]
add esi, 4
cmp esi, eax
jne 0x412bb1
lea ecx, [esp + 0x40]
call fcn.0040ee80
lea ecx, [esp + 0x64]
call fcn.00406010
lea ecx, [esp + 0x70]
call fcn.00406010
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
mov dword [esp + 0x1c], esi
jl 0x4129f4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret