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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [esp + 0x28], edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x80]
mov dword [esp], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], 0x567468
mov dword [esp + 0x58], 0x5c06d2
mov dword [esp + 0x60], 0x4715f7
mov dword [esp + 0x64], esp
call fcn.00567748
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
shl ecx, 3
mov eax, ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
add eax, dword [edx]
mov dword [esp + 0x40], 0xffffffff
add eax, 4
mov dword [esp], eax
call fcn.005674e8
sub esp, 4
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov ebx, dword [ecx + edi*8]
add edi, 1
sub eax, ecx
mov dword [esp + 0x20], edi
sar eax, 3
cmp edi, eax
je 0x47159e
mov eax, edi
shl eax, 3
add ecx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
cmp ebx, eax
jae 0x47159e
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], 0
lea edx, [edx*8 + 0x10]
mov dword [esp + 0x1c], edx
jmp 0x471435
lea edx, [esp + 0x7c]
add ecx, 4
mov dword [esp + 4], 0x5c92f8
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 0x40], 1
call fcn.005bde60
lea ecx, [esp + 0x7c]
mov dword [esp + 0x40], 3
mov dword [esp], ecx
mov ecx, dword [esp + 0x24]
call fcn.005675b8
sub esp, 4
mov eax, 0xffffffff
mov ecx, dword [esp + 0x7c]
lock xadd dword [ecx - 4], eax
test eax, eax
jle 0x4715c0
sub dword [esp + 0x30], 1
mov ecx, dword [esp + 0x28]
add dword [esp + 0x20], 1
mov edi, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ebx, dword [edx + edi]
sub eax, edx
sar eax, 3
cmp dword [esp + 0x20], eax
je 0x471523
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x1c]
add ecx, edx
mov eax, dword [ecx]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x38]
add esi, 8
cmp eax, dword [edx + edi]
jbe 0x471523
mov dword [esp + 0x1c], esi
cmp ebx, eax
jb 0x4714c5
ja 0x471390
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
mov esi, dword [eax - 4]
sub ecx, 1
test esi, esi
mov dword [esp + 0x34], ecx
js 0x47146f
mov ecx, edx
mov dword [esp + 0x40], 1
call fcn.00567568
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
mov edx, dword [esp + 0x34]
cmp byte [eax + edx], 0x28
je 0x47149c
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], 0x5c8b94
mov dword [esp + 0x40], 1
call fcn.00567518
sub esp, 8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add eax, dword [edx]
mov dword [esp + 0x40], 1
add eax, 4
mov dword [esp], eax
call fcn.005675b8
sub esp, 4
jmp 0x4713e9
add ecx, 4
mov dword [esp + 4], 0x28
mov dword [esp + 8], ecx
lea ecx, [esp + 0x78]
mov dword [esp], ecx
mov dword [esp + 0x40], 1
call fcn.005be0d0
mov ecx, dword [esp + 0x24]
lea edi, [esp + 0x78]
mov dword [esp + 0x40], 2
mov dword [esp], edi
call fcn.005675b8
sub esp, 4
mov eax, 0xffffffff
mov ecx, dword [esp + 0x78]
lock xadd dword [ecx - 4], eax
test eax, eax
jle 0x4715e0
add dword [esp + 0x30], 1
jmp 0x4713e9
mov edi, dword [esp + 0x30]
test edi, edi
je 0x47159e
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov edx, dword [eax - 0xc]
lea ecx, [edx + 1]
cmp ecx, dword [eax - 8]
mov dword [esp + 0x1c], ecx
ja 0x47154f
mov ebx, dword [eax - 4]
test ebx, ebx
jle 0x471573
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], 1
mov ecx, dword [esp + 0x24]
mov dword [esp], edx
call fcn.005675b0
sub esp, 4
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax - 0xc]
add dword [esp + 0x20], 1
mov byte [eax + edx], 0x29
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
cmp dword [esp + 0x30], ecx
mov dword [eax - 4], 0
mov dword [eax - 0xc], edx
mov byte [eax + edx], 0
jne 0x471533
lea edi, [esp + 0x3c]
mov dword [esp], edi
call fcn.00567750
mov eax, dword [esp + 0x24]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [esp + 0x77]
sub ecx, 0xc
mov dword [esp], edi
call fcn.00567500
sub esp, 4
jmp 0x4713e4
lea eax, [esp + 0x77]
sub ecx, 0xc
mov dword [esp], eax
call fcn.00567500
sub esp, 4
jmp 0x471519