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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x7c
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x5d4821
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x60]
mov dword [esp], eax
lea ebx, [ebp - 0x50]
call fcn.0050fe40
lea eax, [ebp - 0x60]
sub esp, 4
mov dword [ebp - 0x50], 0
mov dword [esp + 4], ebx
mov dword [ebp - 0x4c], 0
mov dword [esp], eax
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x44], 0xffffffff
call fcn.00529290
test eax, eax
mov esi, eax
je 0x5d4b30
mov dword [esp], 0xa8
call fcn.00708230
mov edx, dword [ebp - 0x60]
mov ebx, eax
mov dword [eax], 0
mov dword [eax + 4], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x5d4af0
mov edx, dword [ebp - 0x5c]
mov dword [ebx + 8], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x5d4b00
movzx eax, word [ebp - 0x58]
mov word [ebx + 0xc], ax
movzx eax, word [ebp - 0x56]
mov word [ebx + 0xe], ax
movzx eax, word [ebp - 0x54]
mov word [ebx + 0x10], ax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x54], 0x880f80
mov esi, 3
mov dword [ebx + 0x58], 0x880f80
mov dword [ebx + 0x5c], 0x880f80
mov dword [ebx + 0x4c], eax
lea eax, [ebx + 0x54]
mov dword [ebx + 0x60], 0x880f80
mov dword [ebx + 0x64], 0x880f80
mov dword [ebx + 0x68], 0x880f80
mov dword [ebp - 0x70], eax
lea eax, [ebx + 0x80]
mov dword [ebx + 0x6c], 0x880f80
mov dword [ebx + 0x70], 0x880f80
mov dword [ebx + 0x74], 0x880f80
mov dword [ebx + 0x78], 0x880f80
mov dword [ebx + 0x7c], 0x880f80
mov edi, eax
mov dword [ebp - 0x6c], eax
mov ecx, edi
call fcn.005d42e0
sub esi, 1
add edi, 4
cmp esi, 0xffffffff
jne 0x5d4975
movzx eax, byte [ebx + 0x94]
and dword [ebx + 0x90], 0xc0000000
mov dword [ebx + 0x98], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
and eax, 0xfffffffe
or eax, 2
mov byte [ebx + 0x94], al
mov dword [ebp - 0x64], ebx
lock add dword [ebx], 1
mov esi, dword [ebp - 0x64]
movzx eax, byte [esi + 0x94]
test al, 1
jne 0x5d4a65
mov edx, dword [esi + 0x50]
test edx, edx
je 0x5d4b55
mov dword [esp], 0x400000
mov ecx, esi
call fcn.00628040
mov edx, dword [ebp - 0x64]
sub esp, 4
test eax, eax
setne bl
test edx, edx
mov esi, edx
jne 0x5d4a67
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
test edx, edx
je 0x5d4b10
cmp edx, 0xffffffff
je 0x5d4a24
lock sub dword [eax], 1
mov eax, dword [ebp - 0x5c]
je 0x5d4b10
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
test edx, edx
je 0x5d4a43
cmp edx, 0xffffffff
je 0x5d4817
lock sub dword [eax], 1
mov eax, dword [ebp - 0x60]
jne 0x5d4817
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 2
call fcn.004a4c50
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
lock sub dword [esi], 1
jne 0x5d4a05
mov esi, dword [ebp - 0x64]
test esi, esi
je 0x5d4a05
lea edi, [esi + 0x80]
lea eax, [esi + 0x8c]
mov dword [ebp - 0x70], esi
lea ecx, [edi - 4]
mov esi, eax
mov dword [ebp - 0x6c], ecx
nop
lea esi, [esi]
mov ecx, esi
sub esi, 4
call fcn.005d42f0
cmp dword [ebp - 0x6c], esi
jne 0x5d4a90
mov esi, dword [ebp - 0x70]
lea eax, [esi + 0x78]
mov dword [ebp - 0x70], eax
lea eax, [edi - 8]
mov dword [ebp - 0x6c], eax
jmp 0x5d4ac9
cmp edx, 0xffffffff
je 0x5d4ac0
lock sub dword [eax], 1
je 0x5d4ad4
nop
lea esi, [esi]
cmp edi, dword [ebp - 0x6c]
je 0x5d4b90
sub edi, 4
mov eax, dword [edi]
mov edx, dword [eax]
test edx, edx
jne 0x5d4ab0
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov eax, dword [edi]
mov dword [esp], eax
call fcn.004a4c50
jmp 0x5d4ac0
lock add dword [edx], 1
jmp 0x5d488f
lock add dword [edx], 1
jmp 0x5d48a3
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x5d4a24
lea eax, [ebp - 0x60]
mov dword [esp + 8], 0x400000
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.005238b0
mov ebx, dword [ebp - 0x4c]
shr ebx, 0x16
and ebx, 1
jmp 0x5d4a05
test al, 2
je 0x5d4b63
test byte [esi + 0x1a], 0x40
je 0x5d4b63
mov edx, esi
jmp 0x5d4b80
lea eax, [esi + 0x18]
mov dword [esp + 8], 0x400000
mov dword [esp + 4], eax
lea eax, [esi + 4]
mov dword [esp], eax
call fcn.005238b0
mov edx, dword [ebp - 0x64]
mov ebx, dword [esi + 0x1c]
shr ebx, 0x16
and ebx, 1
jmp 0x5d49ff
mov edi, dword [ebp - 0x70]
lea eax, [esi + 0x74]
mov dword [ebp - 0x6c], eax
sub edi, 0x28
jmp 0x5d4bb6
cmp edx, 0xffffffff
je 0x5d4bab
lock sub dword [eax], 1
je 0x5d4bbe
sub dword [ebp - 0x6c], 4
mov eax, dword [ebp - 0x6c]
cmp edi, eax
je 0x5d4be0
mov eax, dword [eax]
mov edx, dword [eax]
test edx, edx
jne 0x5d4ba0
mov eax, dword [ebp - 0x6c]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004a4c50
jmp 0x5d4bab
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x5d4bec
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 8]
mov edx, dword [eax]
test edx, edx
je 0x5d4c50
cmp edx, 0xffffffff
je 0x5d4c00
lock sub dword [eax], 1
je 0x5d4c50
mov eax, dword [esi + 4]
mov edx, dword [eax]
test edx, edx
je 0x5d4c30
cmp edx, 0xffffffff
je 0x5d4c14
lock sub dword [eax], 1
je 0x5d4c30
mov dword [esp + 4], 0xa8
mov dword [esp], esi
call fcn.006fcab0
jmp 0x5d4a05
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.004a4c50
jmp 0x5d4c14
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov eax, dword [esi + 8]
mov dword [esp], eax
call fcn.004a4c50
jmp 0x5d4c00