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

Disassembly:
push 0xffffffffffffffff
push 0x5cd3c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov eax, dword [0x64aa84]
push ebp
push esi
mov dword [esp + 0x80], eax
mov eax, dword [0x6613c8]
push edi
mov esi, ecx
push 1
add eax, 4
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x6c], esi
call fcn.005789d4
xor edi, edi
mov dword [esp + 0x90], edi
mov ebp, dword [esp + 0x98]
mov edx, dword [ebp]
push 1
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 0
call dword [edx + 0x34]
mov al, byte [esp + 0xf]
cmp al, 0xe0
je 0x47dbac
cmp al, 0xe
je 0x47dbac
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.0057897a
xor eax, eax
jmp 0x47e0a9
mov edx, dword [ebp]
push ebx
push 4
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x1c], edi
call dword [edx + 0x34]
cmp dword [esp + 0x14], edi
jbe 0x47e08c
mov ecx, esi
call fcn.0047d600
cmp dword [esp + 0x14], edi
jbe 0x47e08c
nop
mov ebx, dword [esp + 0x14]
mov edx, dword [ebp]
push 4
lea eax, [esp + 0x24]
dec ebx
push eax
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call dword [edx + 0x34]
cmp eax, 4
jne 0x47e090
mov edx, dword [ebp]
push 2
lea eax, [esp + 0x64]
push eax
mov ecx, ebp
call dword [edx + 0x34]
cmp eax, 2
jne 0x47e090
mov edx, dword [ebp]
push 4
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call dword [edx + 0x34]
cmp eax, 4
jne 0x47e090
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x94], 2
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x94], 4
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x94], 6
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], 0x3e8
mov dword [esp + 0x5c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
jbe 0x47df13
mov esi, dword [esp + 0x18]
dec esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], esi
call fcn.00472ba0
mov byte [esp + 0x94], 7
push ebp
lea ecx, [esp + 0x30]
call fcn.00472cb0
test eax, eax
je 0x47e0cc
mov al, byte [esp + 0x34]
cmp al, 1
jne 0x47ddb6
cmp byte [esp + 0x2c], 2
jne 0x47def4
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
lea esi, [eax - 0x10]
add ebx, 0xfffffff0
cmp esi, ebx
je 0x47def4
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jl 0x47dda3
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x47dda3
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x47dd42
cmp eax, dword [esi]
jne 0x47dd42
mov ebp, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x47dd79
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
mov ebp, eax
test ebp, ebp
je 0x47e0e2
mov edx, dword [esi + 4]
mov dword [ebp + 4], edx
mov eax, dword [esi + 4]
inc eax
lea ecx, [eax + eax]
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47dd90
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x9c]
jmp 0x47def4
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.004053c0
jmp 0x47def4
cmp al, 0xb
jne 0x47de29
cmp byte [esp + 0x2c], 2
jne 0x47def4
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x47def4
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x47de16
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x47de16
push eax
call fcn.004026e0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x47de0a
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x24], ebx
jmp 0x47def4
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.004053c0
jmp 0x47def4
cmp al, 0x87
jne 0x47de45
cmp byte [esp + 0x2c], 3
jne 0x47def4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
jmp 0x47def4
cmp al, 0x88
jne 0x47de61
cmp byte [esp + 0x2c], 3
jne 0x47def4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
jmp 0x47def4
cmp al, 0x92
jne 0x47de87
cmp byte [esp + 0x2c], 3
jne 0x47def4
mov eax, dword [esp + 0x3c]
test ah, 4
mov dword [esp + 0x5c], eax
je 0x47def4
or dword [esp + 0x40], 0x400
jmp 0x47def4
cmp al, 0xe
jne 0x47de9c
cmp byte [esp + 0x2c], 3
jne 0x47def4
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x50], edx
jmp 0x47def4
cmp al, 0x98
jne 0x47deb1
cmp byte [esp + 0x2c], 3
jne 0x47def4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x64], eax
jmp 0x47def4
cmp al, 0x97
jne 0x47dec6
cmp byte [esp + 0x2c], 3
jne 0x47def4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], ecx
jmp 0x47def4
cmp al, 0x95
jne 0x47dedb
cmp byte [esp + 0x2c], 3
jne 0x47def4
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x48], edx
jmp 0x47def4
cmp al, 0x85
jne 0x47def4
cmp byte [esp + 0x2c], 2
jne 0x47def4
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
call fcn.00405540
mov byte [esp + 0x94], 6
lea ecx, [esp + 0x2c]
call fcn.0046c070
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, edi
ja 0x47dcb4
dec dword [esp + 0x18]
cmp dword [esp + 0x20], edi
mov ebx, dword [esp + 0x28]
jne 0x47df5c
mov eax, dword [ebx - 0xc]
test eax, eax
jle 0x47df5c
movzx edx, word [esp + 0x60]
push 1
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [0x661414]
push edx
push ebx
call fcn.00492e80
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
call fcn.00405540
mov edi, 1
mov edx, dword [esp + 0x20]
push 1
push edx
call fcn.004c9c40
add esp, 8
test al, al
je 0x47e012
mov eax, dword [esp + 0x20]
and eax, 0xff
cmp eax, 0x42
je 0x47e012
cmp eax, 0x47
je 0x47e012
mov eax, dword [esp + 0x60]
push 0
push 0
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x78]
call fcn.0047d6e0
mov esi, eax
test esi, esi
je 0x47e012
lea edx, [esp + 0x1c]
lea ecx, [esi + 0x30]
push edx
call fcn.00405540
lea eax, [esp + 0x24]
lea ecx, [esi + 0x34]
push eax
call fcn.00405540
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esi + 0x48], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0x24], eax
mov ax, word [esp + 0x64]
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0x40]
or ecx, edx
mov edx, dword [esp + 0x50]
mov word [esi + 0x46], ax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x38], ecx
mov cx, word [esp + 0x4c]
inc eax
mov word [esi + 0x44], cx
mov dword [esi + 0x54], edi
mov dword [esi + 0x1c], edx
mov dword [esp + 0x44], eax
mov byte [esp + 0x94], 4
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e034
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x94], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e05a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x94], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e080
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x47dbe0
dec dword [esp + 0x14]
mov dword [esp + 0x94], 0xffffffff
lea ecx, [esp + 0x6c]
call fcn.0057897a
mov eax, dword [esp + 0x44]
pop ebx
mov ecx, dword [esp + 0x88]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x7c]
pop ebp
call fcn.0057981f
add esp, 0x88
ret 4
mov byte [esp + 0x94], 6
lea ecx, [esp + 0x2c]
call fcn.0046c070
jmp 0x47df17
call fcn.00401360
int3