Function at 0x45f7e7
Capabilities:
Encode data using base64
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
xor eax, eax
push esi
mov esi, edx
mov dword [ebp - 0x80], eax
mov edx, ecx
mov dword [ebp - 0x48], eax
push edi
mov dword [ebp - 0x3c], edx
mov edi, dword [edx]
lea ebx, [edx + 0x2f0]
mov dword [ebp - 0x58], edi
mov eax, dword [edi + 8]
mov dword [ebp - 4], eax
lea eax, [edx + 0x50]
mov dword [ebp - 0x6c], eax
mov eax, dword [edi]
mov dword [ebp - 0x5c], eax
imul eax, esi, 0x50
add ebx, eax
mov dword [ebp - 0x28], ebx
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebx + 0x2c]
imul ecx, eax, 0x48
mov eax, dword [edx + 4]
add eax, 8
add eax, ecx
lea ecx, [edx + 0x1e8]
mov dword [ebp - 0x74], eax
mov eax, dword [eax + 0x2c]
mov edx, eax
mov dword [ebp - 0x24], eax
call fcn.00462699
mov ecx, dword [ebp - 0x3c]
not eax
and eax, dword [ebp + 8]
not edx
and edx, dword [ebp + 0xc]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], edx
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
mov ecx, esi
call 0x48de90
xor ecx, ecx
inc ecx
and eax, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
push 0x20
pop edx
test byte [eax + 0x24], 0x40
je 0x45f892
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x2c], dl
jne 0x45f892
mov dword [ebp - 0xc], ecx
jmp 0x45f896
and dword [ebp - 0xc], 0
mov ecx, dword [ebp - 4]
call fcn.00431bbd
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
call fcn.00431bbd
cmp byte [ebx + 0x2c], 0
mov dword [ebp - 0x7c], eax
mov dword [ebx + 0x18], eax
jbe 0x45f8dd
mov eax, dword [ebp - 0x74]
test byte [eax + 0x24], 8
je 0x45f8dd
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 4]
inc eax
push eax
push 0
push 0x43
mov dword [edi + 0x2c], eax
pop edx
mov dword [ebx], eax
call fcn.00431977
pop ecx
pop ecx
xor edx, edx
mov eax, esi
test esi, esi
jle 0x45f8f3
mov ecx, ebx
cmp dword [ecx], edx
jne 0x45f8f3
dec eax
sub ecx, 0x50
test eax, eax
jg 0x45f8e7
mov ecx, dword [ebp - 0x3c]
imul eax, eax, 0x50
mov eax, dword [eax + ecx + 0x2fc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x74]
test byte [eax + 0x28], 0x10
je 0x45f93d
push dword [eax + 0x18]
mov esi, dword [eax + 0x1c]
mov ecx, dword [ebp - 4]
push edx
push esi
push 0xf
pop edx
call fcn.004318f3
mov ecx, dword [ebp - 4]
add esp, 0xc
push dword [ebp - 0x50]
push esi
push 0x10
pop edx
call fcn.00431977
mov dword [ebx + 0x34], eax
mov byte [ebx + 0x2d], 0xd
jmp 0x460906
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x24]
test eax, 0x400
je 0x45fb48
movzx eax, word [ecx + 0x28]
mov ecx, edi
mov dword [ebp - 0x28], eax
call fcn.00441bb4
lea edx, [eax + 2]
call fcn.00443d65
mov ecx, eax
xor esi, esi
mov eax, dword [ebx + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x28], esi
jle 0x45f9c6
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + esi*4]
test edx, edx
je 0x45f9c0
xor eax, eax
inc eax
test byte [edx + 0xc], al
je 0x45f9a8
lea eax, [ecx + 2]
mov ecx, edi
add eax, esi
push eax
push dword [ebp - 0x38]
push esi
push ebx
call fcn.0045f0a2
mov eax, dword [ebx + 0x10]
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x45f9bd
mov edx, dword [edx]
push eax
lea eax, [ecx + 2]
mov ecx, edi
add eax, esi
mov edx, dword [edx + 0x10]
push eax
call fcn.0045f699
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
inc esi
cmp esi, dword [ebp - 0x28]
jl 0x45f976
mov eax, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 4]
push dword [eax + 0x18]
push 0x43
pop edx
call fcn.00431977
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x28]
inc eax
mov ecx, dword [ebp - 4]
push eax
push esi
push 0x43
pop edx
call fcn.00431977
mov ecx, dword [ebp - 0x1c]
or eax, 0xffffffff
push 0xfffffffffffffff9
pop edx
cmp byte [ecx + 0x1c], 0
cmovne eax, edx
push eax
push dword [ecx + 0x20]
mov ecx, dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x24]
push 0xb
pop eax
mov edx, eax
call fcn.00431a3d
mov edx, dword [ebp - 0x1c]
add esp, 0x24
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
mov byte [edx + 0x1c], 0
mov dword [ebx + 0x30], eax
cmp byte [ecx + 0x31], 0
push 0x3d
pop eax
lea ecx, [eax + 0x6c]
cmovne eax, ecx
mov ecx, dword [ebp - 4]
mov byte [ebx + 0x2d], al
call fcn.00431d61
lea ecx, [esi - 1]
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x18], ecx
test ecx, ecx
js 0x45fb3c
imul esi, eax, 0xc
mov dword [ebp - 0x28], esi
mov eax, dword [edx + 0x30]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0xc], edx
cmp ecx, 0x10
jge 0x45fa86
mov eax, dword [ebp - 0x1c]
mov ax, word [eax + 0x1e]
shr ax, cl
test al, 1
je 0x45fa83
mov ecx, ebx
call fcn.0045ee61
jmp 0x45fb2a
mov ecx, dword [ebp - 0x18]
xor eax, eax
inc eax
test byte [edx + 0xc], al
je 0x45fb2d
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0x49], 0
jne 0x45fac4
mov edx, dword [ebx + 0x3c]
sub esi, 0xc
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x28], esi
mov edx, dword [edx + esi + 4]
call fcn.0043216a
push dword [eax + 0xc]
movzx edx, byte [eax]
push dword [eax + 8]
push dword [eax + 4]
call fcn.004318f3
add esp, 0xc
xor eax, eax
mov ecx, edi
push eax
push eax
push 0x35
pop edx
call fcn.0043f843
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x45fb27
mov ecx, dword [ebp - 0xc]
mov edx, 0x9a
push 0
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x5c]
call fcn.0043f7c2
mov dword [esi + 0x10], eax
pop ecx
test eax, eax
je 0x45fb19
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
add edx, 2
add ecx, edx
push 0
mov dword [eax + 0x1c], ecx
push dword [ebx + 0x18]
push esi
push edi
call fcn.004431b1
add esp, 0x10
mov ecx, dword [ebp - 0x5c]
mov edx, esi
and dword [esi + 0xc], 0
call fcn.0043fbd7
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x18], ecx
jns 0x45fa5b
mov ecx, edi
call fcn.00441bb8
jmp 0x460908
test al, 5
setne cl
bt eax, 8
setb al
test al, cl
mov eax, dword [ebp - 0x1c]
je 0x45fbc3
mov eax, dword [eax + 0x30]
mov ecx, edi
mov edx, dword [eax]
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
push 0
push ebx
call fcn.0045f0a2
mov edx, dword [ebp - 0xc]
mov esi, eax
add esp, 0x10
cmp esi, edx
je 0x45fb8a
mov ecx, edi
call fcn.00443d22
mov ecx, dword [ebp - 4]
push esi
push dword [ebx + 0x10]
push dword [ebp - 0x24]
push 0x1f
pop edx
call fcn.004318f3
add esp, 0xc
xor eax, eax
inc eax
mov edx, esi
mov ecx, edi
push eax
call fcn.00441e14
mov edx, dword [ebp - 0x24]
pop ecx
push esi
push 0xffffffffffffffff
mov ecx, edi
call fcn.00441aec
mov byte [ebx + 0x2d], 0xa9
jmp 0x460906
mov ecx, dword [eax + 0x24]
mov eax, ecx
and eax, 0x102
cmp eax, 0x102
jne 0x45fdd0
push 0x20
pop eax
mov dword [ebp - 0x18], 0xa9
mov esi, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], edx
test al, cl
je 0x45fc00
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
mov esi, dword [eax]
xor eax, eax
lea edx, [eax + 1]
jmp 0x45fc03
mov edx, dword [ebp - 0xc]
test cl, 0x10
je 0x45fc16
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x20], ecx
jmp 0x45fc19
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x45fc25
mov dword [ebp - 0x20], esi
mov esi, ecx
test esi, esi
je 0x45fccc
mov edx, dword [esi]
mov dword [ebp - 8], 0x1a18191b
mov dword [ebp - 0xc], edx
mov ecx, dword [edx + 0x10]
call fcn.0043f324
mov ecx, edi
test eax, eax
je 0x45fc75
call fcn.00443d03
mov edx, dword [edx + 0x10]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x28], esi
inc eax
push eax
push esi
call fcn.0045f699
mov edx, dword [ebp - 0xc]
xor eax, eax
pop ecx
pop ecx
inc eax
movzx ecx, byte [edx]
inc ecx
and ecx, 2
or ecx, eax
mov al, byte [ebp + ecx - 8]
jmp 0x45fc9b
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x34]
push eax
call fcn.00442b99
pop ecx
mov edx, esi
mov dword [ebp - 0x28], eax
mov ecx, ebx
call fcn.0045ee61
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x34]
movzx ecx, byte [edx]
mov al, byte [ebp + ecx - 0x3e]
push dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
push dword [ebp - 0x50]
movzx edx, al
push dword [ebp - 0x24]
call fcn.004318f3
mov edx, dword [ebp - 0x28]
add esp, 0xc
xor eax, eax
mov ecx, edi
inc eax
push eax
call fcn.00441e14
pop ecx
mov edx, esi
mov ecx, edi
call fcn.00443d22
jmp 0x45fce7
push dword [ebp - 0x34]
test eax, eax
push dword [ebp - 0x24]
push 0x25
pop edx
push 0x21
pop ecx
cmovne edx, ecx
mov ecx, dword [ebp - 4]
call fcn.00431977
pop ecx
pop ecx
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x45fd60
mov eax, dword [esi]
inc dword [edi + 0x2c]
mov ecx, dword [edi + 0x2c]
push 1
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0xc], eax
call fcn.0045f699
mov edx, dword [ebp - 0xc]
pop ecx
pop ecx
mov eax, dword [edx + 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.0043f324
test eax, eax
jne 0x45fd3b
mov al, byte [edx]
cmp al, 0x38
je 0x45fd29
cmp al, 0x36
jne 0x45fd3b
cmp dword [ebp - 0x38], 0
push 0x39
pop edx
push 0x37
pop eax
cmovne edx, eax
mov dword [ebp - 0x18], edx
jmp 0x45fd4b
cmp dword [ebp - 0x38], 0
push 0x36
pop eax
push 0x38
pop ecx
cmovne eax, ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
call fcn.0043f324
test eax, eax
jne 0x45fd60
mov edx, esi
mov ecx, ebx
call fcn.0045ee61
mov ecx, dword [ebp - 4]
call fcn.00431d61
cmp dword [ebp - 0x38], 0
mov dword [ebx + 0x34], eax
sete cl
add cl, 6
cmp dword [ebp - 0x18], 0xa9
mov byte [ebx + 0x2d], cl
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 0x30], ecx
je 0x460908
inc dword [edi + 0x2c]
mov esi, dword [edi + 0x2c]
push esi
push ecx
mov ecx, dword [ebp - 4]
push 0x7d
pop edx
call fcn.00431977
mov edx, dword [ebp - 0x24]
mov ecx, edi
push esi
push 0xffffffffffffffff
call fcn.00441aec
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
push esi
push dword [ebp - 0x50]
push dword [ebp - 0x14]
call fcn.004318f3
mov ecx, dword [ebp - 4]
add esp, 0x1c
push 0x53
pop edx
call fcn.00431e80
jmp 0x460908
test ecx, 0x200
je 0x4603c5
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x68], edx
movzx eax, word [esi + 0x18]
mov dword [ebp - 8], eax
movzx eax, word [esi + 0x1a]
mov dword [ebp - 0x20], eax
movzx eax, word [esi + 0x1c]
mov esi, edx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0xd], dl
mov byte [ebp - 0x51], dl
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x2c], 1
je 0x45fe3b
cmp byte [eax + 0x2f], 0
mov eax, dword [ebp - 8]
jle 0x45fe3e
mov edi, dword [ebp - 0x48]
cmp word [edi + 0x32], ax
mov edi, dword [ebp - 0x58]
jbe 0x45fe3e
xor esi, esi
mov byte [ebp - 0xd], 1
inc esi
jmp 0x45fe3e
mov eax, dword [ebp - 8]
movzx eax, ax
push 0x20
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
pop eax
test al, cl
je 0x45fe6f
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
inc dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + edi*4]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
movzx eax, word [edi + 0x1a]
mov edi, dword [ebp - 0x58]
cmp esi, eax
cmovbe esi, eax
test cl, 0x10
je 0x45ff1f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
movzx eax, word [ecx + 0x1c]
mov ecx, 0x100
cmp esi, eax
cmovbe esi, eax
mov eax, dword [ebp - 0x44]
test word [eax + 0xa], cx
je 0x45fee5
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 4]
inc eax
push eax
mov dword [edi + 0x2c], eax
mov dword [ebx + 0x24], eax
xor eax, eax
inc eax
push eax
push 0x43
pop edx
call fcn.00431977
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.00431d61
shl dword [ebx + 0x24], 1
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x1c]
cmp byte [edx + eax], 1
sete cl
xor ecx, dword [ebp - 0x38]
or dword [ebx + 0x24], ecx
xor edx, edx
cmp dword [ebp - 0x18], 0
jne 0x45ff1f
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x30]
mov eax, dword [eax + 4]
movsx ecx, word [eax + ecx*2]
mov dword [ebp - 0x14], ecx
test ecx, ecx
js 0x45ff14
mov eax, dword [ebp - 0x48]
add ecx, ecx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xc], 0
je 0x45ff19
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xfffffffe
jne 0x45ff1f
xor eax, eax
inc eax
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + 0x32]
mov dword [ebp - 0x14], eax
cmp cx, ax
jae 0x45ff50
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov edi, dword [ebp - 0x30]
mov eax, dword [eax + 0x1c]
cmp byte [edi + eax], cl
mov edi, dword [ebp - 0x58]
sete cl
cmp dword [ebp - 0x38], ecx
je 0x45ff5b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x38], 0
je 0x45ff82
cmp ax, cx
jne 0x45ff82
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov al, byte [ebp - 0xd]
mov byte [ebp - 0x51], al
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0xd], dl
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x44], ecx
movzx ecx, dx
movzx eax, al
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
mov edx, ebx
push eax
push esi
push dword [ebp - 0x38]
mov ecx, edi
call fcn.0045f3bc
mov ecx, dword [ebp - 0x64]
add esp, 0xc
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x45ffb9
mov edx, dword [ebp - 0x60]
test dx, dx
je 0x45ffb9
mov edx, dword [ebp - 0x30]
lea edx, [ecx + edx]
mov ecx, dword [ebp - 0x5c]
call fcn.0041a88c
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45ffd3
test byte [eax + 0xc], 0x28
jne 0x45ffd3
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
jmp 0x45ffdc
mov dword [ebp - 0x4c], 1
xor ecx, ecx
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x45fff1
test byte [edx + 0xc], 0x28
jne 0x45fff1
xor edx, edx
mov dword [ebp - 0x50], ecx
inc edx
jmp 0x45fff7
xor edx, edx
inc edx
mov dword [ebp - 0x50], edx
test eax, eax
jne 0x460004
mov dword [ebp - 0x14], ecx
cmp word [ebp - 8], ax
jbe 0x460007
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x30]
mov esi, edx
test eax, eax
je 0x4600ad
mov ecx, dword [ebp - 0x2c]
mov eax, dword [eax]
add ecx, edx
mov edi, dword [ebp - 0x20]
movzx edx, di
mov edi, dword [ebp - 0x58]
mov eax, dword [eax + 0x10]
push edx
mov dword [ebp - 0x70], ecx
mov edx, eax
push ecx
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.0045f699
push dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, ebx
call fcn.0045f5b1
mov ecx, dword [ebp - 8]
add esp, 0xc
call fcn.0044083e
test eax, eax
je 0x460067
push dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
push dword [ebp - 0x70]
push 0x32
pop edx
call fcn.00431977
pop ecx
pop ecx
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x460083
mov eax, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [ebp - 0x20]
movzx edx, cx
mov ecx, dword [ebp - 8]
push eax
call fcn.0045ef20
pop ecx
mov ecx, dword [ebp - 0x20]
movzx eax, cx
mov ecx, dword [ebp - 8]
add esi, eax
call fcn.0043f324
test eax, eax
jne 0x4600a3
mov edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.0045ee61
jmp 0x4600a9
xor eax, eax
inc eax
mov dword [ebp - 0x4c], eax
xor al, al
jmp 0x4600d6
mov al, byte [ebp - 0xd]
test al, al
je 0x4600d6
mov eax, dword [ebp - 0x2c]
add eax, edx
push eax
push ecx
mov ecx, dword [ebp - 4]
push 0x46
pop edx
call fcn.00431977
and dword [ebp - 0x4c], 0
xor eax, eax
inc esi
inc eax
pop ecx
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 0xd]
pop ecx
push dword [ebp - 0x64]
mov edx, dword [ebp - 0x2c]
mov ecx, esi
movzx eax, al
sub ecx, eax
push ecx
mov ecx, edi
call fcn.0045eec5
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
movzx eax, word [eax + 0x2a]
test ax, ax
je 0x4600fd
cmp esi, eax
je 0x460129
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
push esi
mov esi, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x34]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x40]
movzx edx, byte [ecx + eax*2 + 0x49f1ec]
mov ecx, dword [ebp - 4]
call fcn.00431b6e
add esp, 0x10
jmp 0x46012c
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4601e5
mov eax, dword [eax]
mov ecx, edi
mov edx, dword [ebp - 0x30]
add edx, esi
push 1
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x4c], eax
call fcn.00441b76
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x4c]
movzx esi, ax
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x30]
pop ecx
push esi
push eax
mov ecx, edi
call fcn.0045f699
push dword [ebp - 0x44]
mov ecx, dword [ebp - 4]
mov edx, ebx
call fcn.0045f5b1
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
call fcn.0044083e
test eax, eax
je 0x460199
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
push eax
push 0x32
pop edx
call fcn.00431977
pop ecx
pop ecx
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4601c2
mov ecx, dword [ebp - 0x4c]
mov edx, esi
push eax
call fcn.0045ef20
mov edx, dword [ebp - 0x2c]
pop ecx
mov ecx, dword [ebp - 0x30]
push dword [ebp - 0x68]
push esi
lea edx, [edx + ecx]
mov ecx, edi
call fcn.0045eec5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4c]
add dword [ebp - 0x30], esi
call fcn.0043f324
test eax, eax
jne 0x4601dd
mov edx, dword [ebp - 0x44]
mov ecx, ebx
call fcn.0045ee61
jmp 0x460213
xor eax, eax
inc eax
mov dword [ebp - 0x50], eax
jmp 0x460213
cmp byte [ebp - 0x51], 0
je 0x460213
add esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
push esi
push 0
push 0x46
pop edx
call fcn.00431977
xor eax, eax
mov edx, esi
inc eax
mov ecx, edi
push eax
call fcn.00441b76
and dword [ebp - 0x50], 0
add esp, 0xc
inc dword [ebp - 0x30]
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x5c]
call fcn.0041a50a
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x5c]
call fcn.0041a50a
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.00431d61
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x46025f
mov ecx, dword [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x50]
push dword [ebp - 0x34]
push dword [ebp - 0x40]
movzx edx, byte [eax + ecx*2 + 0x49d1ac]
mov ecx, esi
call fcn.00431b6e
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x460362
mov edx, dword [ebp - 0x48]
push 0x20
pop eax
mov ecx, dword [edx + 0xc]
test byte [ecx + 0x24], al
jne 0x4602e3
mov ecx, dword [ebp - 0x3c]
movzx eax, word [ecx + 0x2c]
test eax, 0x400
jne 0x4602a7
test eax, 0x1000
je 0x460294
xor eax, eax
inc eax
cmp byte [ecx + 0x31], al
je 0x4602a7
mov esi, dword [ebp - 0x40]
push esi
push dword [ebp - 0x24]
call fcn.0045f5e5
pop ecx
pop ecx
jmp 0x460365
inc dword [edi + 0x2c]
mov edx, 0x84
mov esi, dword [edi + 0x2c]
mov ecx, dword [ebp - 4]
push esi
push dword [ebp - 0x40]
call fcn.00431977
mov edx, dword [ebp - 0x24]
mov ecx, edi
push esi
push 0xffffffffffffffff
call fcn.00441aec
mov ecx, dword [ebp - 4]
push esi
push 0
push dword [ebp - 0x24]
push 0x20
pop eax
mov edx, eax
call fcn.004318f3
add esp, 0x1c
jmp 0x460362
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x460368
call fcn.00446b5b
mov esi, eax
mov ecx, edi
movzx edx, word [esi + 0x32]
call fcn.00443d65
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x14], ecx
cmp ax, word [esi + 0x32]
jae 0x460348
xor ebx, ebx
mov edi, ecx
mov ecx, dword [ebp - 0x48]
lea eax, [ebx + edi]
push eax
mov eax, dword [esi + 4]
mov dx, word [eax + ebx*2]
call fcn.00446b73
mov ecx, dword [ebp - 4]
cwde
push eax
push dword [ebp - 0x40]
push 0x62
pop edx
call fcn.004318f3
movzx eax, word [esi + 0x32]
add esp, 0xc
inc ebx
cmp ebx, eax
jl 0x460310
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x14]
movzx eax, word [esi + 0x32]
push eax
push ecx
push dword [ebp - 0x7c]
mov ecx, dword [ebp - 4]
push dword [ebp - 0x24]
push 0x1d
pop edx
call fcn.00431b6e
add esp, 0x10
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
cmp dword [ebx], 0
jne 0x46037d
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
mov edx, eax
push esi
call fcn.0045f759
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
test dword [ecx + 0x24], 0x1000
je 0x46038f
mov byte [ebx + 0x2d], 0xa9
jmp 0x46039b
cmp dword [ebp - 0x38], 0
sete al
add al, 6
mov byte [ebx + 0x2d], al
xor edx, edx
mov dword [ebx + 0x30], esi
mov al, byte [ecx + 0x26]
inc edx
and al, dl
mov byte [ebx + 0x2e], al
test byte [ecx + 0x24], 0xf
jne 0x4603b2
mov byte [ebx + 0x2f], dl
cmp dword [ebp - 0xc], 0
je 0x460908
and dword [ebp - 0x48], 0
jmp 0x460908
test ecx, 0x2000
je 0x4608c6
mov eax, dword [edi + 0x28]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x38], eax
inc eax
inc dword [edi + 0x2c]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x50], edx
call fcn.00431bbd
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
mov ecx, dword [ecx + 0x30]
mov edx, dword [edx + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x44], edx
mov ecx, dword [ecx]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebp - 0x3c]
mov byte [ebx + 0x2d], 0x3f
mov cl, byte [ecx + 0x2e]
cmp cl, 1
jbe 0x4604f9
movzx ecx, cl
sub ecx, esi
dec ecx
mov dword [ebp - 0x70], ecx
imul ecx, ecx, 0x48
push eax
add ecx, 0x50
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.0041a70f
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x460462
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
jmp 0x460b8d
mov edx, dword [ebp - 0x70]
lea edi, [ecx + 8]
mov esi, dword [ebp - 0x74]
push 0x12
lea eax, [edx + 1]
movzx eax, al
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov eax, dword [ebp - 0x3c]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
inc eax
mov dword [ebp - 0x34], ecx
cmp edx, eax
jl 0x4604c6
mov eax, dword [ebp - 0x2c]
add eax, 0x50
mov dword [ebp - 0x70], eax
lea eax, [ebx + 0x7c]
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x14], eax
movzx eax, byte [eax]
lea esi, [ecx + 8]
imul eax, eax, 0x48
mov edi, ebx
push 0x12
pop ecx
add ebx, 0x48
add esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0x50
mov dword [ebp - 0x14], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x34]
sub edx, 1
jne 0x46049d
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x44]
xor eax, eax
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x3c]
test byte [ecx + 0x2c], 0x10
jne 0x46053e
push 0x20
pop ecx
test byte [edx + 0x24], cl
jne 0x460504
inc dword [edi + 0x2c]
mov ecx, dword [edi + 0x2c]
push ecx
push eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 4]
push 0x46
pop edx
call fcn.00431977
pop ecx
pop ecx
jmp 0x460535
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x2c], ecx
jmp 0x4604ce
mov ecx, edx
call fcn.00446b5b
mov esi, eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x20], eax
lea ecx, [eax + 1]
mov dword [edi + 0x28], ecx
movzx ecx, word [esi + 0x32]
push ecx
mov ecx, dword [ebp - 4]
push eax
push 0x6e
pop edx
call fcn.00431977
pop ecx
pop ecx
mov edx, esi
mov ecx, edi
call fcn.0043214f
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x50], eax
push dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov ecx, esi
push 0
push 0x43
pop edx
call fcn.00431977
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x6c]
pop ecx
pop ecx
cmp dword [eax + 0xc], 1
jle 0x4605f1
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [eax + 0xc], edx
jle 0x4605f1
mov edi, dword [ebp - 0x5c]
xor ebx, ebx
mov ecx, ebx
mov dword [ebp - 0x34], ebx
mov esi, ebx
mov eax, dword [eax + 0x14]
add eax, ecx
cmp eax, dword [ebp - 0x1c]
je 0x4605bb
test byte [eax + 0xa], 6
jne 0x4605bb
mov esi, 0x1fff
test word [eax + 0xc], si
mov esi, dword [ebp - 8]
je 0x4605bb
mov edx, dword [eax]
mov ecx, edi
push ebx
call fcn.0043ff1c
pop ecx
push eax
mov edx, esi
mov ecx, edi
call fcn.0043f937
mov edx, dword [ebp - 0x14]
mov esi, eax
pop ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 8], esi
mov eax, dword [ebp - 0x6c]
inc edx
add ecx, 0x30
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x34], ecx
cmp edx, dword [eax + 0xc]
jl 0x46057c
mov ebx, dword [ebp - 0x28]
test esi, esi
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 4]
je 0x4605f1
mov ecx, dword [ebp - 8]
mov edx, 0x12c
push ecx
push 0
mov ecx, edi
call fcn.0043f843
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
mov ecx, 0x400
push 0x20
mov ax, word [eax + 0x2c]
and ax, cx
pop ecx
or ax, cx
movzx eax, ax
mov dword [ebp - 0x70], eax
xor eax, eax
push str.restart
inc eax
push eax
push edi
call fcn.00431ace
mov edx, dword [ebp - 0x64]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x40], eax
mov ecx, eax
cmp dword [edx + 0xc], eax
jle 0x46084d
xor ebx, ebx
imul eax, ecx, 0x30
add eax, dword [edx + 0x14]
mov edx, dword [ebp - 0x24]
cmp dword [eax + 0x14], edx
je 0x460650
mov edx, 0x400
test word [eax + 0xc], dx
je 0x460838
mov ecx, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x14], ebx
test ecx, ecx
je 0x460661
mov dword [ecx + 0xc], eax
mov eax, ecx
push dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
mov ecx, edi
push dword [ebp - 0x70]
push ebx
push ebx
push eax
call fcn.00466334
add esp, 0x14
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x460835
mov edx, dword [ebp - 0x2c]
lea ecx, [eax + 0x2f0]
push ebx
push ecx
mov ecx, edi
call fcn.0045ec15
mov eax, dword [ebp - 0x3c]
pop ecx
pop ecx
test byte [eax + 0x2c], 0x10
jne 0x4607bb
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x40]
push 0xffffffffffffffff
pop edx
mov eax, dword [eax + 0xc]
dec eax
cmp ecx, eax
mov eax, dword [ebp - 0x44]
push 0x20
cmove ecx, edx
mov dword [ebp - 0x34], ecx
pop ecx
test byte [eax + 0x24], cl
jne 0x4606f4
push ebx
push dword [ebp - 0x50]
mov ecx, edi
push dword [ebp - 0x24]
push edx
mov edx, eax
call fcn.00441d07
push dword [ebp - 0x34]
mov ecx, esi
push eax
push ebx
push dword [ebp - 0x20]
push 0x2d
pop edx
call fcn.00431b6e
add esp, 0x20
mov dword [ebp - 0x14], eax
jmp 0x4607bb
mov ecx, eax
call fcn.00446b5b
mov ecx, edi
mov dword [ebp - 0x88], eax
movzx edx, word [eax + 0x32]
mov dword [ebp - 0x68], edx
call fcn.00443d65
mov ecx, eax
mov dword [ebp - 0x18], ecx
test edx, edx
je 0x460749
mov esi, ebx
mov eax, dword [ebp - 0x88]
add ecx, esi
mov edx, dword [ebp - 0x44]
push ecx
push dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov ecx, edi
movsx eax, word [eax + esi*2]
push eax
call fcn.00441da1
mov edx, dword [ebp - 0x68]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
inc esi
cmp esi, edx
jl 0x46071a
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x46076b
push edx
push ecx
push ebx
push dword [ebp - 0x20]
mov ecx, esi
push 0x1e
pop edx
call fcn.00431b6e
mov dword [ebp - 0x14], eax
add esp, 0x10
mov eax, dword [ebp - 0x34]
test eax, eax
js 0x4607ad
push dword [ebp - 0x50]
mov ecx, esi
push dword [ebp - 0x68]
push dword [ebp - 0x18]
push 0x65
pop edx
call fcn.004318f3
add esp, 0xc
mov edx, 0x81
mov ecx, esi
push dword [ebp - 0x68]
push dword [ebp - 0x18]
push dword [ebp - 0x50]
push dword [ebp - 0x20]
call fcn.00431b6e
add esp, 0x10
cmp dword [ebp - 0x34], ebx
je 0x4607ad
push 0x10
pop edx
mov ecx, esi
call fcn.00431e80
push dword [ebp - 0x68]
mov edx, dword [ebp - 0x18]
mov ecx, edi
call fcn.00443d9b
pop ecx
push dword [ebp - 0x30]
mov ecx, esi
push dword [ebp - 0xc]
push 0xe
pop edx
call fcn.00431977
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
test eax, eax
je 0x4607dd
mov edx, eax
mov ecx, esi
call fcn.00431e98
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x4c]
push 1
pop ecx
cmp byte [edx + 0x32], bl
cmovne eax, ecx
mov ecx, dword [edx + 0x330]
mov dword [ebp - 0x4c], eax
test dword [ecx + 0x24], 0x200
je 0x46082b
cmp dword [ebp - 0x40], ebx
je 0x46080e
mov eax, dword [ebp - 0x60]
cmp dword [ecx + 0x20], eax
jne 0x46082b
mov eax, dword [ebp - 0x44]
test byte [eax + 0x24], 0x20
je 0x460823
mov eax, dword [ecx + 0x20]
mov eax, dword [eax + 0x38]
and al, 3
cmp al, 2
je 0x46082b
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x60], eax
jmp 0x46082e
mov dword [ebp - 0x60], ebx
mov ecx, edx
call fcn.00466c27
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x64]
inc ecx
mov dword [ebp - 0x40], ecx
mov edx, eax
cmp ecx, dword [eax + 0xc]
jl 0x460633
mov ebx, dword [ebp - 0x28]
mov ecx, edi
call fcn.00431b22
mov eax, dword [ebp - 0x60]
mov dword [ebx + 0x38], eax
test eax, eax
je 0x460864
mov eax, dword [ebp - 0x38]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x460879
mov ecx, dword [ebp - 0x5c]
mov edx, eax
and dword [eax + 0xc], 0
call fcn.0043fbd7
mov ecx, esi
call fcn.00431d61
mov edx, dword [ebp - 0x78]
push eax
call fcn.00431e50
mov edx, dword [ebx + 0xc]
pop ecx
mov ecx, esi
call fcn.0043198c
mov edx, dword [ebp - 0x30]
mov ecx, esi
call fcn.00431bff
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
inc ecx
cmp byte [eax + 0x2e], cl
jbe 0x4608b4
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x5c]
call fcn.0041a50a
cmp dword [ebp - 0x4c], 0
jne 0x460908
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
call fcn.0045ee61
jmp 0x460908
mov eax, dword [ebp - 0x74]
push 0x20
pop ecx
test byte [eax + 0x28], cl
je 0x4608d7
mov byte [ebx + 0x2d], 0xa9
jmp 0x460908
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x34]
mov al, byte [ecx + 0x49da98]
movzx edx, byte [ecx + 0x49fe14]
mov ecx, dword [ebp - 4]
mov byte [ebx + 0x2d], al
mov eax, dword [ebp - 0x24]
push eax
mov dword [ebx + 0x30], eax
call fcn.00431977
inc eax
mov dword [ebx + 0x34], eax
xor eax, eax
inc eax
mov byte [ebx + 0x2f], al
pop ecx
pop ecx
xor edx, edx
cmp dword [ebp - 0x48], edx
sete dl
inc edx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x6c]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
jmp 0x4609fe
xor eax, eax
mov dword [ebp - 0xc], eax
movzx eax, word [esi + 0xa]
test al, 6
jne 0x4609f4
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [ebx + 0x48]
and eax, dword [ebx + 0x4c]
or ecx, eax
je 0x460956
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
inc ecx
mov byte [eax + 0x32], cl
jmp 0x4609f1
mov ecx, dword [ebp - 0x74]
mov eax, dword [esi]
mov dword [ebp - 0x78], eax
test byte [ecx + 0x24], 8
je 0x460972
xor ecx, ecx
inc ecx
test byte [eax + 4], cl
je 0x4609f1
jmp 0x460975
xor ecx, ecx
inc ecx
cmp edx, ecx
jne 0x460997
push dword [ebp - 0x48]
mov edx, dword [ebx + 4]
mov ecx, eax
call fcn.00443954
pop ecx
test eax, eax
jne 0x460a24
push 2
pop ecx
mov dword [ebp - 8], ecx
jmp 0x4609f4
cmp edx, 3
jl 0x460a27
movzx eax, word [esi + 0xa]
test eax, 0x200
je 0x4609c8
mov edx, dword [ebx + 0x24]
test edx, edx
je 0x4609c8
mov eax, edx
and edx, ecx
mov ecx, dword [ebp - 4]
add edx, 0x15
shr eax, 1
push eax
call fcn.00431963
pop ecx
mov dword [ebp - 0xc], eax
push 0x10
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push edi
call fcn.004431b1
mov eax, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
je 0x4609ea
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.00431e98
push 4
pop eax
or word [esi + 0xa], ax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
dec eax
add esi, 0x30
mov dword [ebp - 0x14], eax
test eax, eax
jg 0x460927
mov edx, ecx
mov dword [ebp - 0x28], edx
test ecx, ecx
jg 0x460914
mov eax, dword [ebp - 0x6c]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
jmp 0x460b06
xor ecx, ecx
inc ecx
movzx eax, word [esi + 0xa]
test eax, 0x1000
je 0x4609a4
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x4609f4
push 3
jmp 0x460991
test byte [esi + 0xa], 6
jne 0x460b02
movzx eax, word [esi + 0xc]
test al, 0x82
push 0xb
pop edi
setne cl
bt ax, di
mov edi, dword [ebp - 0x58]
setb al
test al, cl
je 0x460b02
mov ecx, dword [ebp - 0x24]
cmp dword [esi + 0x14], ecx
jne 0x460b02
cmp dword [ebx], 0
jne 0x460b02
mov eax, dword [esi]
mov edx, ecx
mov ecx, dword [ebp - 0x6c]
push 0
push 0x83
push dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
push dword [ebp + 8]
push dword [esi + 0x1c]
call fcn.00462977
mov edx, eax
add esp, 0x14
test edx, edx
je 0x460aff
test byte [edx + 0xa], 4
jne 0x460aff
xor ecx, ecx
inc ecx
test byte [edx + 0xc], cl
je 0x460acb
mov eax, dword [edx]
test dword [eax + 4], 0x800
je 0x460acb
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
cmp dword [eax], ecx
jg 0x460aff
mov esi, dword [edx]
lea edi, [ebp - 0xbc]
mov eax, dword [ebp - 0x78]
push 0xc
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0xc]
mov edi, dword [ebp - 0x58]
push 0x10
push dword [ebp - 0x7c]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xbc]
push eax
push edi
call fcn.004431b1
mov esi, dword [ebp - 0xc]
add esp, 0x10
mov edx, dword [ebp - 0x20]
dec edx
add esi, 0x30
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], esi
test edx, edx
jg 0x460a44
cmp dword [ebx], 0
je 0x460b87
mov ecx, dword [ebp - 4]
call fcn.00431d61
push dword [ebx]
mov dword [ebx + 0x1c], eax
xor eax, eax
inc eax
push eax
push 0x43
pop edx
call fcn.00431977
pop ecx
pop ecx
mov ecx, edi
call fcn.00441dd3
mov eax, dword [ebp - 0x6c]
xor edx, edx
mov esi, dword [eax + 0x14]
cmp dword [eax + 0xc], edx
jle 0x460b87
test byte [esi + 0xa], 6
jne 0x460b7b
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [ebx + 0x48]
and eax, dword [ebx + 0x4c]
or ecx, eax
jne 0x460b78
push 0x10
push dword [ebp - 0x7c]
push dword [esi]
push edi
call fcn.004431b1
mov edx, dword [ebp - 0x80]
add esp, 0x10
push 4
pop eax
or word [esi + 0xa], ax
mov eax, dword [ebp - 0x6c]
inc edx
add esi, 0x30
mov dword [ebp - 0x80], edx
cmp edx, dword [eax + 0xc]
jl 0x460b48
mov eax, dword [ebx + 0x48]
mov edx, dword [ebx + 0x4c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret