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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x63da99
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x6e9060]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
cmp edi, 0x207
jne 0x47acf7
call 0x54a928
jmp 0x47b431
cmp edi, 0x201
je 0x47ad30
cmp edi, 0x202
je 0x47ad28
cmp edi, 0x204
je 0x47ad30
cmp edi, 0x200
je 0x47ad28
cmp edi, 0x20
je 0x47ad28
cmp edi, 0x203
jne 0x47b431
cmp edi, 0x204
jne 0x47ad35
call 0x54a928
cmp edi, 0x20
jne 0x47ad56
lea eax, [esp + 0x1c]
push eax
call dword [0x6457f8]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [0x6457fc]
jmp 0x47ad67
mov eax, dword [ebp + 0x10]
movzx ecx, ax
shr eax, 0x10
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
push 1
mov ecx, esi
call 0x5456fa
xor edi, edi
push edi
mov ecx, esi
mov ebx, eax
call 0x5456fa
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add eax, edx
add ecx, ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x20]
push eax
push ecx
mov dword [esp + 0x30], edx
call dword [0x645710]
push edi
mov ecx, esi
call 0x5456fa
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x68]
push edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x70]
push eax
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x40], ecx
call dword [0x645704]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x64], ecx
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], edx
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x40], edi
call eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x170], edi
je 0x47b598
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
jle 0x47aef2
mov ecx, dword [esi + 0x16c]
mov edi, dword [esi + 0x144]
sub edi, dword [esi + 0x140]
add ecx, ebx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x64], ebx
mov edx, dword [ecx]
mov eax, dword [edx]
sar edi, 2
call eax
cmp edi, eax
mov edi, dword [esp + 0x14]
jne 0x47ae78
mov ecx, dword [esi + 0x144]
sub ecx, dword [esi + 0x140]
sar ecx, 2
cmp edi, ecx
jb 0x47ae6f
call 0x561ee8
mov edx, dword [esi + 0x140]
mov edi, dword [edx + edi*4]
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
test eax, eax
je 0x47aeaa
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x68]
push edx
call dword [0x6457e8]
test eax, eax
jne 0x47b45d
mov dword [esp + 0x10], edi
jmp 0x47aed7
mov eax, dword [esp + 0x10]
push eax
mov eax, esi
call fcn.0047b6be
test eax, eax
jne 0x47aedd
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x68]
push eax
call dword [0x6457e8]
test eax, eax
jne 0x47b56a
add ebx, dword [esi + 0x16c]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jl 0x47ae27
xor edi, edi
cmp dword [ebp + 8], 0x200
jne 0x47b426
cmp dword [esi + 0x190], edi
je 0x47b426
push edi
mov ecx, esi
call 0x5456fa
push 1
mov ecx, esi
mov dword [esp + 0x1c], eax
call 0x5456fa
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
call fcn.0047abbe
mov edi, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x58], edi
mov dword [esp + 0xc0], 6
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x47af97
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
test edi, edi
je 0x47b00a
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00480a1e
mov ebx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x24], ebx
mov byte [esp + 0xc0], 7
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x47afd4
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push 1
call eax
test ebx, ebx
je 0x47aff3
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x90]
push eax
mov eax, dword [esp + 0x20]
push ecx
push eax
mov ecx, ebx
call edx
mov byte [esp + 0xc0], 6
test ebx, ebx
je 0x47b00a
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
push 1
mov ecx, ebx
call edx
mov eax, dword [esi + 0x19c]
add eax, dword [esp + 0x14]
mov ebx, dword [esi + 0x198]
add ebx, dword [esp + 0x18]
push eax
mov dword [esp + 0x30], eax
push ebx
lea eax, [esp + 0x2c]
push eax
call fcn.0047abbe
mov edx, dword [eax]
mov dword [esp + 0x10], edx
mov dword [eax], 0
cmp edx, edi
je 0x47b050
test edi, edi
je 0x47b050
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x58], edx
test ecx, ecx
je 0x47b068
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov edx, dword [esp + 0x10]
test edx, edx
je 0x47b0d8
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
lea eax, [esp + 0x2c]
push eax
mov edi, edx
call fcn.00480a1e
mov edi, dword [eax]
mov dword [eax], 0
mov dword [esp + 0xb0], edi
mov byte [esp + 0xc0], 8
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x47b0a6
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push 1
call eax
test edi, edi
je 0x47b0c1
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0xa0]
push eax
push ecx
push ebx
mov ecx, edi
call edx
mov byte [esp + 0xc0], 6
test edi, edi
je 0x47b0d8
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push 1
mov ecx, edi
call edx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x94]
push ecx
call dword [0x645800]
test eax, eax
jne 0x47b1c4
mov edi, dword [0x645804]
lea edx, [esp + 0x90]
push edx
call edi
test eax, eax
jne 0x47b160
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x9c]
neg ecx
push ecx
neg edx
mov dword [esp + 0x38], eax
push edx
lea eax, [esp + 0x30]
push eax
call dword [0x645704]
mov edx, dword [esi + 0x20]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [0x6457ec]
lea eax, [esp + 0xa0]
push eax
call edi
test eax, eax
jne 0x47b1c4
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xac]
neg edx
push edx
neg eax
mov dword [esp + 0x38], ecx
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [0x645704]
mov eax, dword [esi + 0x20]
push 0
lea edx, [esp + 0x2c]
push edx
push eax
call dword [0x6457ec]
push 0
lea ecx, [esi + 0x7c]
push ecx
call 0x47d5fe
mov edi, dword [eax + 4]
mov ecx, dword [esi + 0x16c]
mov eax, dword [esp + 0x20]
cdq
idiv ecx
add edi, 3
mov dword [esp + 0x80], edi
mov dword [esp + 0x28], edi
mov ebx, eax
imul ebx, ecx
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ebx, [eax + ebx - 8]
lea eax, [edi + 0x10]
mov ecx, ebx
mov dword [esp + 0x88], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x18]
neg eax
neg ecx
push eax
push ecx
lea edx, [esp + 0x30]
add ebx, 0x10
push edx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
call dword [0x645704]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], ecx
movzx ecx, bx
mov dword [esp + 0x88], edx
mov edx, dword [esi + 0x19c]
mov dword [esp + 0x8c], eax
mov eax, dword [esi + 0x198]
push edx
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x88]
push ecx
shr ebx, 0x10
call dword [0x6457e8]
mov edx, dword [esp + 0x18]
push ebx
mov dword [esp + 0x28], eax
push edx
lea eax, [esp + 0x88]
push eax
call dword [0x6457e8]
cmp eax, dword [esp + 0x24]
je 0x47b2ce
mov edx, dword [esi + 0x20]
push 0
lea ecx, [esp + 0x84]
push ecx
push edx
call dword [0x6457ec]
mov eax, dword [esi + 0x198]
mov ecx, dword [esi + 0x16c]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x19c]
add eax, dword [esp + 0x14]
cdq
idiv ecx
imul eax, ecx
mov dword [esp + 0x24], eax
mov eax, ecx
mov ecx, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + ecx - 8]
lea edx, [eax + 0x10]
mov ecx, edi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x74], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
push edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x30]
add edi, 0x10
push ecx
mov dword [esp + 0x84], edi
mov dword [esp + 0x3c], edi
call dword [0x645704]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x84]
push ecx
mov dword [esp + 0x84], edx
call dword [0x645800]
test eax, eax
jne 0x47b3bc
mov edx, dword [esi + 0x19c]
mov eax, dword [esi + 0x198]
push edx
push eax
lea ecx, [esp + 0x78]
push ecx
call dword [0x6457e8]
mov edx, dword [esp + 0x18]
push ebx
mov edi, eax
push edx
lea eax, [esp + 0x78]
push eax
call dword [0x6457e8]
cmp eax, edi
je 0x47b3bc
mov edx, dword [esi + 0x20]
push 0
lea ecx, [esp + 0x74]
push ecx
push edx
call dword [0x6457ec]
cmp dword [esi + 0x194], 0
jne 0x47b3f9
mov eax, dword [esi + 0x20]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], 0x10
mov dword [esp + 0x4c], 2
mov dword [esp + 0x54], 0
call dword [0x6457c0]
mov dword [esi + 0x194], 1
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x198], ecx
mov dword [esp + 0xc0], 0xffffffff
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x19c], ebx
test ecx, ecx
je 0x47b424
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
xor edi, edi
mov eax, dword [esp + 0x40]
cmp eax, edi
jne 0x47b445
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push edi
mov ecx, esi
call 0x548ae0
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 0x170], 1
jne 0x47b4bc
mov eax, dword [esi + 0x16c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x44], 0x6a761c
mov dword [esp + 0xc0], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.0048040e
mov dword [esp + 0x40], eax
mov dword [esp + 0xc0], 0xffffffff
jmp 0x47aef0
mov ecx, dword [esi + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x18]
push eax
call edx
push edi
mov dword [esp + 0xc4], 1
mov eax, dword [eax]
push ebx
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x16c]
mov edx, esi
mov ebx, eax
call int.004801ee
mov byte [esp + 0xc0], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47b519
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.0048040e
mov dword [esp + 0x40], eax
mov dword [esp + 0xc0], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47aef0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47aef0
mov eax, dword [esi + 0x16c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x44], 0x6a761c
mov dword [esp + 0xc0], 4
jmp 0x47b48f
mov eax, dword [esp + 0x20]
cdq
idiv dword [esi + 0x16c]
mov ecx, dword [esi + 0x54]
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [edx]
mov dword [esp + 0x10], ebx
call eax
cmp ebx, eax
jge 0x47aef2
cmp dword [esi + 0x130], edi
je 0x47b5d4
push ebx
lea ecx, [esi + 0x134]
call fcn.004b25de
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [esi + 0x16c]
mov eax, ecx
cdq
idiv ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x44], 0x6a761c
sub ecx, edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0xd0], 5
call fcn.0048040e
mov dword [esp + 0x40], eax
mov dword [esp + 0xc0], 0xffffffff
jmp 0x47aef2