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

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x2c
mov dword [esp], 0xa8
mov dword [esp + 0x10], ecx
call fcn.00708230
mov esi, dword [edi]
mov dword [eax], 0
mov ebx, eax
lea eax, [eax + 4]
mov edx, dword [esi + 4]
mov dword [esp + 0x18], eax
mov dword [ebx + 4], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x54bda0
mov edx, dword [esi + 8]
mov dword [ebx + 8], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x54bd92
movzx eax, word [esi + 0xc]
mov word [ebx + 0xc], ax
movzx eax, word [esi + 0xe]
mov word [ebx + 0xe], ax
movzx eax, word [esi + 0x10]
mov word [ebx + 0x10], ax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [ebx + 0x4c], eax
lea eax, [ebx + 0x18]
mov dword [esp + 4], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call fcn.00529290
mov dword [ebx + 0x50], eax
lea eax, [ebx + 0x54]
mov dword [ebx + 0x54], 0x880f80
mov dword [ebx + 0x58], 0x880f80
mov dword [ebx + 0x5c], 0x880f80
mov edi, 3
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x80]
mov dword [ebx + 0x60], 0x880f80
mov dword [ebx + 0x64], 0x880f80
mov dword [ebx + 0x68], 0x880f80
mov dword [ebx + 0x6c], 0x880f80
mov dword [ebx + 0x70], 0x880f80
mov ebp, eax
mov dword [ebx + 0x74], 0x880f80
mov dword [ebx + 0x78], 0x880f80
mov dword [ebx + 0x7c], 0x880f80
mov dword [esp + 0x14], eax
mov ecx, ebp
call fcn.005d42e0
sub edi, 1
add ebp, 4
cmp edi, 0xffffffff
jne 0x54bbf8
movzx eax, byte [ebx + 0x94]
and dword [ebx + 0x90], 0xc0000000
mov edx, eax
and eax, 0xfffffffc
and edx, 0xfffffffe
mov byte [ebx + 0x94], dl
movzx edx, byte [esi + 0x94]
mov dword [ebx + 0x98], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
and edx, 2
or eax, edx
mov byte [ebx + 0x94], al
lock add dword [ebx], 1
mov eax, dword [esp + 0x10]
mov edx, 0xffffffff
mov eax, dword [eax]
lock xadd dword [eax], edx
mov eax, dword [esp + 0x10]
cmp edx, 1
jne 0x54bd88
mov esi, dword [eax]
test esi, esi
je 0x54bd88
lea edi, [esi + 0x80]
lea ebp, [esi + 0x8c]
mov dword [esp + 0x14], ebx
lea eax, [edi - 4]
mov ebx, ebp
mov ebp, eax
lea esi, [esi]
mov ecx, ebx
sub ebx, 4
call fcn.005d42f0
cmp ebx, ebp
jne 0x54bca0
lea eax, [edi - 8]
mov ebx, edi
lea ebp, [esi + 0x78]
mov edi, eax
jmp 0x54bccf
cmp ecx, 0xffffffff
je 0x54bccb
lock sub dword [edx], 1
je 0x54bcda
cmp ebx, edi
je 0x54bcf8
sub ebx, 4
mov edx, dword [ebx]
mov ecx, dword [edx]
test ecx, ecx
jne 0x54bcc0
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov edx, dword [ebx]
mov dword [esp], edx
call fcn.004a4c50
cmp ebx, edi
jne 0x54bccf
mov ebx, dword [esp + 0x14]
lea edi, [esi + 0x74]
sub ebp, 0x28
jmp 0x54bd16
cmp edx, 0xffffffff
je 0x54bd0f
lock sub dword [eax], 1
je 0x54bd1e
sub edi, 4
cmp ebp, edi
je 0x54bd40
mov eax, dword [edi]
mov edx, dword [eax]
test edx, edx
jne 0x54bd04
mov dword [esp + 8], 4
mov dword [esp + 4], 2
sub edi, 4
mov eax, dword [edi + 4]
mov dword [esp], eax
call fcn.004a4c50
cmp ebp, edi
jne 0x54bd16
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x54bd4c
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 8]
mov edx, dword [eax]
test edx, edx
je 0x54bdb0
cmp edx, 0xffffffff
je 0x54bd60
lock sub dword [eax], 1
je 0x54bdb0
mov eax, dword [esi + 4]
mov edx, dword [eax]
test edx, edx
je 0x54bdd4
cmp edx, 0xffffffff
je 0x54bd74
lock sub dword [eax], 1
je 0x54bdd4
mov dword [esp + 4], 0xa8
mov dword [esp], esi
call fcn.006fcab0
mov eax, dword [esp + 0x10]
mov dword [eax], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lock add dword [edx], 1
jmp 0x54bb12
lock add dword [edx], 1
jmp 0x54bafe
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov eax, dword [esi + 8]
mov dword [esp], eax
call fcn.004a4c50
mov eax, dword [esi + 4]
mov edx, dword [eax]
test edx, edx
jne 0x54bd69
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.004a4c50
jmp 0x54bd74