Function at 0x47e710
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x569a70
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5bf094]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bf094]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
lea edx, [esp + 0x16]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 0x61
call fcn.0047e110
xor ebp, ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x84], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x47e782
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x18]
push edx
push eax
push ebp
lea ecx, [esp + 0x34]
call fcn.00407840
test eax, eax
jne 0x47e7ca
xor ecx, ecx
cmp dword [esp + 0x38], 8
mov word [edi], cx
jb 0x47e7c3
mov edx, dword [esp + 0x24]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
jmp 0x47e9e5
lea edx, [esp + 0x22]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
mov dword [esp + 0x2c], 0x41
call fcn.0047e110
lea ecx, [esp + 0x1e]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x64]
push eax
mov ecx, esi
mov byte [esp + 0x90], 1
mov dword [esp + 0x28], 0x3b
call fcn.0047e110
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
xor esi, esi
cmp ebx, ebp
jl 0x47e851
lea esp, [esp]
cmp esi, edx
jg 0x47e851
cmp dword [esp + 0x38], 8
mov ecx, dword [esp + 0x24]
jae 0x47e833
lea ecx, [esp + 0x24]
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x47e842
lea eax, [esp + 0x40]
mov cx, word [ecx + esi*2]
cmp cx, word [eax + esi*2]
jne 0x47e851
inc esi
cmp esi, ebx
jle 0x47e820
dec esi
jns 0x47e8bb
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x47e8ca
lea eax, [esp + 0x24]
movzx edi, word [eax + esi*2]
cmp esi, ebp
je 0x47e942
lea edx, [esp + 0x40]
push edi
push edx
call fcn.0047d120
mov ebp, eax
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.0047d120
add esp, 0x10
cmp eax, ebp
jne 0x47e93c
lea ecx, [esp + 0x5c]
push edi
push ecx
call fcn.0047d120
lea edx, [esp + 0x2c]
push edi
push edx
mov ebp, eax
call fcn.0047d120
add esp, 0x10
cmp eax, ebp
jne 0x47e93c
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x5c]
mov word [eax], di
call fcn.00491ef0
lea ecx, [esp + 0x40]
call fcn.00491ef0
lea ecx, [esp + 0x24]
call fcn.00491ef0
mov eax, 2
jmp 0x47e9e5
mov edx, dword [esp + 0x50]
xor ebp, ebp
cmp ebx, edx
jne 0x47e976
cmp ebx, dword [esp + 0x6c]
jne 0x47e976
mov ecx, dword [esp + 0x18]
inc esi
mov word [ecx], si
lea ecx, [esp + 0x5c]
call fcn.00491ef0
lea ecx, [esp + 0x40]
call fcn.00491ef0
lea ecx, [esp + 0x24]
call fcn.00491ef0
mov eax, 1
jmp 0x47e9e5
mov eax, dword [esp + 0x18]
xor edx, edx
mov edi, 8
mov word [eax], dx
cmp dword [esp + 0x70], edi
jb 0x47e997
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004b8946
add esp, 4
xor edx, edx
mov esi, 7
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebp
mov word [esp + 0x5c], dx
cmp dword [esp + 0x54], edi
jb 0x47e9be
mov eax, dword [esp + 0x40]
push eax
call fcn.004b8946
add esp, 4
xor ecx, ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebp
mov word [esp + 0x40], cx
cmp dword [esp + 0x38], edi
jb 0x47e9e0
mov edx, dword [esp + 0x24]
push edx
call fcn.004b8946
add esp, 4
mov eax, 3
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004b92b7
add esp, 0x74
ret