Function at 0x47001b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, edx
push ebx
push esi
push edi
mov ebx, dword [eax]
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], edi
mov al, byte [ebx]
mov esi, dword [edi + 8]
mov dword [ebp - 0xc], esi
cmp al, 0x4e
je 0x4703f8
cmp al, 0x48
je 0x4703f8
cmp al, 0x4b
jne 0x470065
mov ebx, dword [ebp + 0x14]
mov ecx, esi
push ebx
push 0
push 0x3b
pop edx
call fcn.0044337d
pop ecx
jmp 0x470407
mov esi, dword [ecx + 0x40]
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
test dword [esi + 0x24], 0x400
mov dword [ebp - 0x24], 5
mov dword [ebp - 0x20], esi
jne 0x4700a3
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4700a3
mov eax, dword [eax + 0x1c]
cmp byte [ecx + eax], 0
je 0x4700a3
xor edx, edx
cmp dword [ebp + 0x10], edx
sete dl
mov dword [ebp - 0x10], edx
jmp 0x4700a9
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x4700c6
mov edx, dword [esi + 0x30]
mov edx, dword [edx + eax*4]
test edx, edx
je 0x4700c1
cmp dword [edx], ebx
je 0x4703f3
inc eax
cmp eax, ecx
jl 0x4700af
movzx edx, word [esi + 0x28]
mov eax, ecx
cmp ecx, edx
jge 0x4700f3
mov ecx, dword [esi + 0x30]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ecx + eax*4]
test esi, esi
je 0x4700e2
cmp dword [esi], ebx
jne 0x4700e2
inc edi
inc eax
cmp eax, edx
jl 0x4700d6
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x28]
test dword [ebx + 4], 0x800
je 0x470265
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
cmp dword [eax], 1
je 0x470265
mov eax, dword [edi]
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
mov dword [ebp - 8], eax
movzx eax, word [eax + 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x2c], ecx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x38], eax
cmp ecx, edx
jge 0x4701a5
mov eax, dword [esi + 0x30]
mov eax, dword [eax + ecx*4]
cmp dword [eax], ebx
jne 0x470199
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 8]
dec eax
imul edi, eax, 0x18
mov eax, dword [ebp - 0x34]
push 0
mov edx, dword [edi + eax + 8]
call fcn.0045199a
mov esi, eax
mov eax, dword [ebp - 0x38]
pop ecx
mov ecx, dword [ebp - 8]
push 0
mov edx, dword [edi + eax + 8]
call fcn.0045199a
mov edx, dword [ebp - 0x18]
mov edi, eax
pop ecx
mov ecx, dword [ebp - 0x28]
push esi
call fcn.00451dea
mov edx, dword [ebp - 0x14]
pop ecx
push edi
mov edi, dword [ebp - 0x28]
mov ecx, edi
mov dword [ebp - 0x18], eax
call fcn.00451dea
mov esi, dword [ebp - 0x20]
pop ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
movzx eax, word [esi + 0x28]
inc ecx
mov dword [ebp - 0x2c], ecx
cmp ecx, eax
jl 0x470138
mov eax, dword [ebp - 8]
cmp byte [eax + 0x45], 0
jne 0x47024c
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x2c], ecx
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x4701de
xor edx, edx
cmp dword [eax], edx
jle 0x4701de
lea ecx, [eax + 0x1c]
xor esi, esi
inc edx
mov word [ecx], si
lea ecx, [ecx + 0x18]
cmp edx, dword [eax]
jl 0x4701cb
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
cmp dword [eax], 1
jne 0x4701ee
mov eax, dword [eax + 8]
mov dword [ebx + 0xc], eax
jmp 0x470206
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edi]
shl eax, 2
push 0
push eax
call fcn.0042c37a
pop ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
mov edx, ebx
mov ecx, dword [ebp - 0x18]
push dword [ebp - 4]
mov dword [eax], ecx
xor ecx, ecx
mov eax, dword [ebp - 8]
inc ecx
push 0
push 4
or word [eax + 0x40], cx
mov ecx, edi
call fcn.0045246e
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov word [eax + 0x40], cx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x14], ecx
mov dword [ebx + 0xc], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edi]
call fcn.00452067
mov edx, dword [ebp - 0x18]
mov ecx, dword [edi]
call fcn.00452067
mov eax, dword [ebp - 0x24]
jmp 0x47027a
push 0
push 0
push 4
mov edx, ebx
mov ecx, edi
call fcn.0045246e
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp eax, 4
jne 0x47028c
xor eax, eax
cmp dword [ebp - 0x10], eax
sete al
mov dword [ebp - 0x10], eax
jmp 0x47028f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
test eax, eax
push 0
push ecx
push 0x25
pop edx
mov dword [ebp - 0x30], ecx
push 0x21
pop ecx
cmovne edx, ecx
mov ecx, dword [ebp - 0xc]
call fcn.0044337d
or dword [esi + 0x24], 0x800
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x38]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x4702d5
mov ecx, dword [ebp - 0xc]
call fcn.00443528
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 0x38]
mov dword [ebp - 0x38], eax
add eax, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x3c]
mov dword [ecx + 0x38], eax
mov ecx, dword [edi]
imul eax, eax, 0xc
push 0
push eax
call fcn.0042c519
mov edi, eax
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov dword [eax + 0x3c], edi
test edi, edi
je 0x4703e2
imul eax, dword [ebp - 0x38], 0xc
mov ecx, dword [ebp + 0xc]
add edi, eax
movzx eax, word [esi + 0x28]
cmp ecx, eax
jge 0x4703e6
mov edx, dword [ebp + 0x14]
mov eax, ecx
shl eax, 2
sub ecx, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x34], ecx
mov eax, dword [esi + 0x30]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov eax, dword [esi + eax]
mov esi, dword [ebp - 0x20]
cmp dword [eax], ebx
jne 0x4703c7
xor eax, eax
inc eax
cmp dword [ebp - 0x24], eax
jne 0x47035f
mov ecx, dword [ebp - 0xc]
push edx
push dword [ebp - 0x30]
push 0x7d
pop edx
call fcn.0044337d
pop ecx
pop ecx
mov ecx, eax
jmp 0x470390
cmp dword [ebp - 4], 0
je 0x470369
mov eax, dword [ecx]
jmp 0x47036b
xor eax, eax
mov ecx, dword [ebp - 0xc]
push edx
push eax
push dword [ebp - 0x30]
push 0x63
pop edx
call fcn.004432f9
mov edx, dword [ebp - 0x38]
add esp, 0xc
cmp dword [ebp - 4], 0
mov ecx, eax
lea eax, [edx + 4]
cmove eax, edx
mov dword [ebp - 0x38], eax
push dword [ebp - 0x1c]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0xc]
push 0x4b
pop edx
call fcn.00443369
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
add eax, edx
pop ecx
cmp eax, dword [ebp + 0xc]
jne 0x4703bf
cmp dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x30]
mov dword [edi], eax
sete al
add al, 4
jmp 0x4703c1
mov al, 0xa4
mov byte [edi + 8], al
add edi, 0xc
add dword [ebp - 0x2c], 4
inc edx
mov ecx, dword [ebp - 0x34]
movzx eax, word [esi + 0x28]
add ecx, edx
mov dword [ebp - 0x1c], edx
cmp ecx, eax
jl 0x47032b
jmp 0x4703e6
and dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov ecx, dword [ecx]
call fcn.0042c1c6
mov ebx, dword [ebp + 0x14]
jmp 0x470408
push dword [ebp + 0x14]
mov edx, dword [ebx + 0x10]
mov ecx, edi
call fcn.00453984
mov ebx, eax
pop ecx
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp + 8]
call fcn.0046fef4
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret