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

Disassembly:
push 0xffffffffffffffff
push 0x5401cc
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0
mov eax, dword [0x59d7d0]
test al, 1
jne 0x4f7cbe
or eax, 1
mov dword [0x59d7d0], eax
push 0
push 0
mov ecx, 0x59d7c0
mov dword [esp + 0x70], 1
mov dword [0x59d7c0], 0
mov dword [0x59d7c4], 0
call fcn.004def00
mov dword [0x59d7c0], eax
mov ecx, 0x59d7c8
mov byte [esp + 0x68], 2
mov dword [0x59d7c8], 0
mov dword [0x59d7cc], 0
call fcn.004f4b70
push 0x543e40
mov dword [0x59d7c8], eax
mov byte [esp + 0x6c], 1
call fcn.0049f971
add esp, 4
mov byte [esp + 0x68], 0
mov edx, dword [0x59d7c8]
mov ecx, edx
mov ebp, dword [esp + 0x74]
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x4f7cfd
mov esi, dword [ebp]
cmp dword [eax + 0x10], esi
jae 0x4f7ce0
mov eax, dword [eax + 8]
jmp 0x4f7ce4
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4f7cd6
cmp ecx, edx
je 0x4f7cfd
cmp esi, dword [ecx + 0x10]
jb 0x4f7cfd
mov dword [esp + 0x18], ecx
lea esi, [esp + 0x18]
jmp 0x4f7d05
mov dword [esp + 0x1c], edx
lea esi, [esp + 0x1c]
mov esi, dword [esi]
cmp esi, edx
je 0x4f7de9
mov ecx, dword [0x59d7c0]
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 0x14]
je 0x4f7db1
push 0
push 0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], 0
call fcn.004def00
mov edi, eax
mov dword [esp + 0x34], edi
mov edx, dword [esi + 0x14]
mov ecx, dword [0x59d7c0]
mov dword [esp + 0x68], 3
cmp edx, ecx
je 0x4f7d6f
push 1
push dword [edx]
lea ecx, [esp + 0x3c]
push edx
push 0x59d7c0
push edi
call fcn.004e02a0
mov edi, dword [esp + 0x34]
mov ecx, dword [0x59d7c0]
mov eax, dword [edi]
cmp eax, edi
je 0x4f7d90
push 1
push dword [eax]
push eax
lea eax, [esp + 0x40]
push eax
push ecx
mov ecx, 0x59d7c0
call fcn.004e02a0
mov ecx, dword [0x59d7c0]
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x34]
mov dword [esi + 0x14], eax
call fcn.004e1730
push dword [esp + 0x34]
call fcn.0047d4a0
mov ecx, dword [0x59d7c0]
add esp, 4
mov eax, dword [ecx + 4]
mov esi, dword [esp + 0x70]
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 4], edx
test edx, edx
je 0x4f7dd3
add edx, 4
mov ecx, 1
lock xadd dword [edx], ecx
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
push 0x424
call fcn.0047d464
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x68], 4
test eax, eax
je 0x4f7e12
push dword [ebp]
mov ecx, eax
call fcn.004f4030
jmp 0x4f7e14
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], 5
push ecx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004f3c10
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x68], 6
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
test ecx, ecx
je 0x4f7e63
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
mov dword [esp + 0x5c], 0
mov edi, dword [0x59d7c0]
lea eax, [esp + 0x54]
push eax
mov ecx, 0x59d7c0
mov byte [esp + 0x6c], 7
push dword [edi + 4]
push edi
call fcn.004da2f0
mov edx, dword [0x59d7c4]
mov ecx, 0xccccccb
sub ecx, edx
mov esi, eax
cmp ecx, 1
jae 0x4f7ea7
push str.list_T__too_long
call fcn.004c3890
inc edx
mov byte [esp + 0x68], 6
mov dword [0x59d7c4], edx
or ebx, 0xffffffff
mov dword [edi + 4], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov esi, dword [esp + 0x58]
test esi, esi
je 0x4f7ef0
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4f7ef0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, ebx
lock xadd dword [eax], edx
cmp edx, 1
jne 0x4f7ef0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, dword [0x59d7c0]
mov ecx, dword [ebp]
mov dword [esp + 0x3c], ecx
mov ecx, 0x59d7c8
mov eax, dword [eax + 4]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x3c]
push eax
call fcn.004da2c0
push eax
add eax, 0x10
mov ecx, 0x59d7c8
push eax
push 0
lea eax, [esp + 0x58]
push eax
call fcn.004db6a0
push ebp
lea eax, [esp + 0x28]
mov ecx, 0x59d7c8
push eax
call fcn.004f8e70
mov ecx, dword [0x59d7c0]
mov eax, dword [eax]
mov ecx, dword [ecx + 4]
add eax, 0x10
mov dword [ecx + 0x10], eax
mov eax, dword [0x59d7cc]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], eax
cmp eax, ecx
jbe 0x4f802f
mov ebx, dword [0x59d7c0]
mov esi, dword [ebx]
cmp esi, ebx
je 0x4f802c
mov edi, edi
cmp eax, ecx
jbe 0x4f802c
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4f801e
mov eax, dword [ecx + 4]
cmp eax, 1
jne 0x4f801a
mov edi, esi
lea eax, [esp + 0x44]
mov esi, dword [esi]
mov ecx, 0x59d7c8
push dword [edi + 0x10]
push eax
call fcn.00518000
push dword [esp + 0x48]
lea eax, [esp + 0x2c]
mov ecx, 0x59d7c8
push dword [esp + 0x48]
push eax
call fcn.004e32a0
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [0x59d7c4]
mov ebp, dword [edi + 0xc]
test ebp, ebp
je 0x4f8006
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4f8006
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 4]
lea eax, [ebp + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x4f8006
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 8]
push edi
call fcn.0047d4a0
mov eax, dword [esp + 0x18]
add esp, 4
dec eax
mov dword [esp + 0x14], eax
jmp 0x4f8020
mov eax, dword [esp + 0x14]
mov esi, dword [esi]
mov ecx, dword [esp + 0x78]
cmp esi, ebx
jne 0x4f7f70
or ebx, 0xffffffff
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 1
mov dword [edi], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 4], 0
mov esi, dword [edi + 4]
mov dword [esp + 0x30], esi
mov dword [edi + 4], eax
mov byte [esp + 0x68], 0
test esi, esi
je 0x4f808f
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4f808f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x4f808f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, edi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret